Class DefaultAwsSessionCredentialsIdentity
- java.lang.Object
-
- software.amazon.awssdk.identity.spi.internal.DefaultAwsSessionCredentialsIdentity
-
- All Implemented Interfaces:
AwsCredentialsIdentity
,AwsSessionCredentialsIdentity
,Identity
public final class DefaultAwsSessionCredentialsIdentity extends Object implements AwsSessionCredentialsIdentity
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
accessKeyId()
Retrieve the AWS access key, used to identify the user interacting with services.static AwsSessionCredentialsIdentity.Builder
builder()
boolean
equals(Object o)
int
hashCode()
String
secretAccessKey()
Retrieve the AWS secret access key, used to authenticate the user interacting with services.String
sessionToken()
Retrieve the AWS session token.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.identity.spi.Identity
expirationTime
-
-
-
-
Method Detail
-
builder
public static AwsSessionCredentialsIdentity.Builder builder()
-
accessKeyId
public String accessKeyId()
Description copied from interface:AwsCredentialsIdentity
Retrieve the AWS access key, used to identify the user interacting with services.- Specified by:
accessKeyId
in interfaceAwsCredentialsIdentity
-
secretAccessKey
public String secretAccessKey()
Description copied from interface:AwsCredentialsIdentity
Retrieve the AWS secret access key, used to authenticate the user interacting with services.- Specified by:
secretAccessKey
in interfaceAwsCredentialsIdentity
-
sessionToken
public String sessionToken()
Description copied from interface:AwsSessionCredentialsIdentity
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 interfaceAwsSessionCredentialsIdentity
-
-