Interface AwsSessionCredentialsIdentity

All Superinterfaces:
AwsCredentialsIdentity, Identity
All Known Implementing Classes:
AwsSessionCredentials, DefaultAwsSessionCredentialsIdentity

@ThreadSafe public interface AwsSessionCredentialsIdentity extends AwsCredentialsIdentity
A special type of AwsCredentialsIdentity that provides a session token to be used in service authentication. Session tokens are typically provided by a token broker service, like AWS Security Token Service, and provide temporary access to an AWS service.
  • Method Details

    • sessionToken

      String sessionToken()
      Retrieve the AWS session token. This token is retrieved from an AWS token service, and is used for authenticating that this user has received temporary permission to access some resource.
    • builder

    • create

      static AwsSessionCredentialsIdentity create(String accessKeyId, String secretAccessKey, String sessionToken)
      Constructs a new session credentials object, with the specified AWS access key, AWS secret key and AWS session token.
      Parameters:
      accessKeyId - The AWS access key, used to identify the user interacting with services.
      secretAccessKey - The AWS secret access key, used to authenticate the user interacting with services.
      sessionToken - The AWS session token, retrieved from an AWS token service, used for authenticating that this user has received temporary permission to access some resource.