Interface STSApi

All Superinterfaces:
AutoCloseable, Closeable

public interface STSApi extends Closeable
Provides access to Amazon STS via the Query API

See Also:
  • Method Details

    • 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)
      like createTemporaryCredentials(), 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:
      roleArn - The Amazon Resource Name (ARN) of the role that the caller is assuming.
      sessionName - An identifier for the assumed role session, included as part of
      invalid reference
      User#getId
      .
    • assumeRole

      @Named("AssumeRole") @POST @Path("/") UserAndSessionCredentials assumeRole(@FormParam("RoleArn") String roleArn, @FormParam("RoleSessionName") String sessionName, AssumeRoleOptions options)
      like assumeRole(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 of
      invalid reference
      User#getId
      .
    • createFederatedUser

      @Named("GetFederationToken") @POST @Path("/") UserAndSessionCredentials createFederatedUser(@FormParam("Name") String userName, FederatedUserOptions options)
      like createFederatedUser(String), except you can modify the timeout and other parameters.