Class ExternalAccountSupplierContext (1.33.1)

publicclass ExternalAccountSupplierContextimplementsSerializable

Context object to pass relevant variables from external account credentials to suppliers. This will be passed on any call made to IdentityPoolSubjectTokenSupplier or AwsSecurityCredentialsSupplier.

Inheritance

java.lang.Object > ExternalAccountSupplierContext

Implements

Serializable

Methods

getAudience()

publicStringgetAudience()

Returns the credentials' expected audience.

Returns
Type Description
String

the requested audience. For example: "//iam.googleapis.com/locations/global/workforcePools/$WORKFORCE_POOL_ID/providers/$PROVIDER_ID".

getSubjectTokenType()

publicStringgetSubjectTokenType()

Returns the credentials' expected Security Token Service subject token type based on the OAuth 2.0 token exchange spec.

Expected values:

"urn:ietf:params:oauth:token-type:jwt" "urn:ietf:params:aws:token-type:aws4_request" "urn:ietf:params:oauth:token-type:saml2" "urn:ietf:params:oauth:token-type:id_token"

Returns
Type Description
String

the requested subject token type. For example: "urn:ietf:params:oauth:token-type:jwt".

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.