Class DefaultAwsCredentialsIdentity
- java.lang.Object
-
- software.amazon.awssdk.identity.spi.internal.DefaultAwsCredentialsIdentity
-
- All Implemented Interfaces:
AwsCredentialsIdentity
,Identity
public final class DefaultAwsCredentialsIdentity extends Object implements AwsCredentialsIdentity
-
-
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.Optional<String>
accountId()
Retrieve the AWS account id associated with this credentials identity, if found.static AwsCredentialsIdentity.Builder
builder()
boolean
equals(Object o)
int
hashCode()
Optional<String>
providerName()
The source that resolved this identity, normally an identity provider.String
secretAccessKey()
Retrieve the AWS secret access key, used to authenticate the user interacting with services.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 AwsCredentialsIdentity.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
-
providerName
public Optional<String> providerName()
Description copied from interface:Identity
The 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:
providerName
in interfaceIdentity
-
accountId
public Optional<String> accountId()
Description copied from interface:AwsCredentialsIdentity
Retrieve the AWS account id associated with this credentials identity, if found.- Specified by:
accountId
in interfaceAwsCredentialsIdentity
-
-