Package com.google.auth.oauth2
Class IdentityPoolCredentialSource
- java.lang.Object
-
- com.google.auth.oauth2.ExternalAccountCredentials.CredentialSource
-
- com.google.auth.oauth2.IdentityPoolCredentialSource
-
- All Implemented Interfaces:
java.io.Serializable
public class IdentityPoolCredentialSource extends ExternalAccountCredentials.CredentialSource
The IdentityPool credential source. Dictates the retrieval method of the external credential, which can either be through a metadata server or a local file.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
IdentityPoolCredentialSource.CredentialFormatType
(package private) static class
IdentityPoolCredentialSource.IdentityPoolCredentialSourceType
-
Field Summary
Fields Modifier and Type Field Description (package private) IdentityPoolCredentialSource.CredentialFormatType
credentialFormatType
(package private) java.lang.String
credentialLocation
(package private) IdentityPoolCredentialSource.IdentityPoolCredentialSourceType
credentialSourceType
(package private) java.util.Map<java.lang.String,java.lang.String>
headers
private static long
serialVersionUID
(package private) java.lang.String
subjectTokenFieldName
-
Constructor Summary
Constructors Constructor Description IdentityPoolCredentialSource(java.util.Map<java.lang.String,java.lang.Object> credentialSourceMap)
The source of the 3P credential.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
hasHeaders()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
credentialSourceType
IdentityPoolCredentialSource.IdentityPoolCredentialSourceType credentialSourceType
-
credentialFormatType
IdentityPoolCredentialSource.CredentialFormatType credentialFormatType
-
credentialLocation
java.lang.String credentialLocation
-
subjectTokenFieldName
@Nullable java.lang.String subjectTokenFieldName
-
headers
@Nullable java.util.Map<java.lang.String,java.lang.String> headers
-
-
Constructor Detail
-
IdentityPoolCredentialSource
public IdentityPoolCredentialSource(java.util.Map<java.lang.String,java.lang.Object> credentialSourceMap)
The source of the 3P credential.If this is a file based 3P credential, the credentials file can be retrieved using the `file` key.
If this is URL-based 3p credential, the metadata server URL can be retrieved using the `url` key.
The third party credential can be provided in different formats, such as text or JSON. The format can be specified using the `format` header, which returns a map with keys `type` and `subject_token_field_name`. If the `type` is json, the `subject_token_field_name` must be provided. If no format is provided, we expect the token to be in the raw text format.
Optional headers can be present, and should be keyed by `headers`.
-
-