public interface IdTokenProvider
Modifier and Type | Interface and Description |
---|---|
static class |
IdTokenProvider.Option
Enum of various credential-specific options to apply to the token.
|
Modifier and Type | Method and Description |
---|---|
IdToken |
idTokenWithAudience(String targetAudience,
List<IdTokenProvider.Option> options)
Returns a Google OpenID Token with the provided audience field.
|
IdToken idTokenWithAudience(String targetAudience, List<IdTokenProvider.Option> options) throws IOException
targetAudience
- List of audiences the issued ID Token should be valid for. targetAudience
accepts a single string value (multiple audiences are not supported)options
- List of Credential specific options for for the token. For example, an IDToken
for a ComputeEngineCredential can return platform specific claims if
"ComputeEngineCredentials.ID_TOKEN_FORMAT_FULL" is provided as a list option.IOException
- if token creation failsCopyright © 2023 Google. All rights reserved.