Class AwsSessionCredentials

    • Method Detail

      • create

        public static AwsSessionCredentials create​(String accessKey,
                                                   String secretKey,
                                                   String sessionToken)
        Constructs a new session credentials object, with the specified AWS access key, AWS secret key and AWS session token.
        Parameters:
        accessKey - The AWS access key, used to identify the user interacting with AWS.
        secretKey - The AWS secret access key, used to authenticate the user interacting with AWS.
        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.
      • sessionToken

        public 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.
        Specified by:
        sessionToken in interface AwsSessionCredentialsIdentity
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object