Package org.jclouds.sts
Interface STSApi
-
- All Superinterfaces:
AutoCloseable
,Closeable
public interface STSApi extends Closeable
Provides access to Amazon STS via the Query API
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserAndSessionCredentials
assumeRole(String roleArn, String sessionName)
Assumes a role for a specified session.UserAndSessionCredentials
assumeRole(String roleArn, String sessionName, AssumeRoleOptions options)
likeassumeRole(String, String)
, except you can modify the timeout and other parameters.UserAndSessionCredentials
createFederatedUser(String userName)
Returns a set of temporary credentials for a federated user with the user name specified.UserAndSessionCredentials
createFederatedUser(String userName, FederatedUserOptions options)
likecreateFederatedUser(String)
, except you can modify the timeout and other parameters.SessionCredentials
createTemporaryCredentials()
Returns a set of temporary credentials for an AWS account or IAM user, with a default timeoutSessionCredentials
createTemporaryCredentials(SessionCredentialsOptions options)
likecreateTemporaryCredentials()
, except you can modify the timeout and other parameters.
-
-
-
Method Detail
-
createTemporaryCredentials
@Named("GetSessionToken") @POST @Path("/") SessionCredentials createTemporaryCredentials()
Returns a set of temporary credentials for an AWS account or IAM user, with a default timeout
-
createTemporaryCredentials
@Named("GetSessionToken") @POST @Path("/") SessionCredentials createTemporaryCredentials(SessionCredentialsOptions options)
likecreateTemporaryCredentials()
, except you can modify the timeout and other parameters.
-
assumeRole
@Named("AssumeRole") @POST @Path("/") UserAndSessionCredentials assumeRole(@FormParam("RoleArn") String roleArn, @FormParam("RoleSessionName") String sessionName)
Assumes a role for a specified session. Only IAM users can assume a role.- Parameters:
sessionName
- An identifier for the assumed role session, included as part ofUser#getId
.roleArn
- The Amazon Resource Name (ARN) of the role that the caller is assuming.
-
assumeRole
@Named("AssumeRole") @POST @Path("/") UserAndSessionCredentials assumeRole(@FormParam("RoleArn") String roleArn, @FormParam("RoleSessionName") String sessionName, AssumeRoleOptions options)
likeassumeRole(String, String)
, except you can modify the timeout and other parameters.
-
createFederatedUser
@Named("GetFederationToken") @POST @Path("/") UserAndSessionCredentials createFederatedUser(@FormParam("Name") String userName)
Returns a set of temporary credentials for a federated user with the user name specified.- Parameters:
userName
- The name of the federated user, included as part ofUser#getId
.
-
createFederatedUser
@Named("GetFederationToken") @POST @Path("/") UserAndSessionCredentials createFederatedUser(@FormParam("Name") String userName, FederatedUserOptions options)
likecreateFederatedUser(String)
, except you can modify the timeout and other parameters.
-
-