Class DefaultAwsSessionCredentialsIdentity
- java.lang.Object
-
- software.amazon.awssdk.identity.spi.internal.DefaultAwsSessionCredentialsIdentity
-
- All Implemented Interfaces:
AwsCredentialsIdentity,AwsSessionCredentialsIdentity,Identity
@SdkInternalApi public final class DefaultAwsSessionCredentialsIdentity extends Object implements AwsSessionCredentialsIdentity
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccessKeyId()Retrieve the AWS access key, used to identify the user interacting with services.Optional<String>accountId()Retrieve the AWS account id associated with this credentials identity, if found.static AwsSessionCredentialsIdentity.Builderbuilder()booleanequals(Object o)inthashCode()Optional<String>providerName()The source that resolved this identity, normally an identity provider.StringsecretAccessKey()Retrieve the AWS secret access key, used to authenticate the user interacting with services.StringsessionToken()Retrieve the AWS session token.StringtoString()-
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:AwsCredentialsIdentityRetrieve the AWS access key, used to identify the user interacting with services.- Specified by:
accessKeyIdin interfaceAwsCredentialsIdentity
-
secretAccessKey
public String secretAccessKey()
Description copied from interface:AwsCredentialsIdentityRetrieve the AWS secret access key, used to authenticate the user interacting with services.- Specified by:
secretAccessKeyin interfaceAwsCredentialsIdentity
-
accountId
public Optional<String> accountId()
Description copied from interface:AwsCredentialsIdentityRetrieve the AWS account id associated with this credentials identity, if found.- Specified by:
accountIdin interfaceAwsCredentialsIdentity
-
sessionToken
public String sessionToken()
Description copied from interface:AwsSessionCredentialsIdentityRetrieve 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:
sessionTokenin interfaceAwsSessionCredentialsIdentity
-
providerName
public Optional<String> providerName()
Description copied from interface:IdentityThe source that resolved this identity, normally an identity provider. Note that this string value would be set by an identity provider implementation and is intended to be used for for tracking purposes. Avoid building logic on its value.- Specified by:
providerNamein interfaceIdentity
-
-