Package com.google.auth.oauth2
Class AwsCredentialSource
- java.lang.Object
-
- com.google.auth.oauth2.ExternalAccountCredentials.CredentialSource
-
- com.google.auth.oauth2.AwsCredentialSource
-
- All Implemented Interfaces:
java.io.Serializable
public class AwsCredentialSource extends ExternalAccountCredentials.CredentialSource
The AWS credential source. Stores data required to retrieve the AWS credential.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.String
IMDSV2_SESSION_TOKEN_URL_FIELD_NAME
(package private) java.lang.String
imdsv2SessionTokenUrl
(package private) java.lang.String
regionalCredentialVerificationUrl
(package private) java.lang.String
regionUrl
(package private) static long
serialVersionUID
(package private) java.lang.String
url
-
Constructor Summary
Constructors Constructor Description AwsCredentialSource(java.util.Map<java.lang.String,java.lang.Object> credentialSourceMap)
The source of the AWS credential.
-
-
-
Field Detail
-
IMDSV2_SESSION_TOKEN_URL_FIELD_NAME
static final java.lang.String IMDSV2_SESSION_TOKEN_URL_FIELD_NAME
- See Also:
- Constant Field Values
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
regionUrl
final java.lang.String regionUrl
-
url
final java.lang.String url
-
regionalCredentialVerificationUrl
final java.lang.String regionalCredentialVerificationUrl
-
imdsv2SessionTokenUrl
final java.lang.String imdsv2SessionTokenUrl
-
-
Constructor Detail
-
AwsCredentialSource
public AwsCredentialSource(java.util.Map<java.lang.String,java.lang.Object> credentialSourceMap)
The source of the AWS credential. The credential source map must contain the `regional_cred_verification_url` field.The `regional_cred_verification_url` is the regional GetCallerIdentity action URL, used to determine the account ID and its roles.
The `environment_id` is the environment identifier, in the format “aws${version}”. This indicates whether breaking changes were introduced to the underlying AWS implementation.
The `region_url` identifies the targeted region. Optional.
The `url` locates the metadata server used to retrieve the AWS credentials. Optional.
-
-