Package com.google.auth.oauth2
Class ExternalAccountSupplierContext
- java.lang.Object
-
- com.google.auth.oauth2.ExternalAccountSupplierContext
-
- All Implemented Interfaces:
java.io.Serializable
public class ExternalAccountSupplierContext extends java.lang.Object implements java.io.Serializable
Context object to pass relevant variables from external account credentials to suppliers. This will be passed on any call made toIdentityPoolSubjectTokenSupplier
orAwsSecurityCredentialsSupplier
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ExternalAccountSupplierContext.Builder
Builder for external account supplier context.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
audience
private static long
serialVersionUID
private java.lang.String
subjectTokenType
-
Constructor Summary
Constructors Modifier Constructor Description private
ExternalAccountSupplierContext(ExternalAccountSupplierContext.Builder builder)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAudience()
Returns the credentials' expected audience.java.lang.String
getSubjectTokenType()
Returns the credentials' expected Security Token Service subject token type based on the OAuth 2.0 token exchange spec.(package private) static ExternalAccountSupplierContext.Builder
newBuilder()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
audience
private final java.lang.String audience
-
subjectTokenType
private final java.lang.String subjectTokenType
-
-
Constructor Detail
-
ExternalAccountSupplierContext
private ExternalAccountSupplierContext(ExternalAccountSupplierContext.Builder builder)
Internal constructor. SeeExternalAccountSupplierContext.Builder
.
-
-
Method Detail
-
getAudience
public java.lang.String getAudience()
Returns the credentials' expected audience.- Returns:
- the requested audience. For example: "//iam.googleapis.com/locations/global/workforcePools/$WORKFORCE_POOL_ID/providers/$PROVIDER_ID".
-
getSubjectTokenType
public java.lang.String getSubjectTokenType()
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:
- the requested subject token type. For example: "urn:ietf:params:oauth:token-type:jwt".
-
newBuilder
static ExternalAccountSupplierContext.Builder newBuilder()
-
-