Package com.google.auth.oauth2
Enum IdTokenProvider.Option
- java.lang.Object
-
- java.lang.Enum<IdTokenProvider.Option>
-
- com.google.auth.oauth2.IdTokenProvider.Option
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<IdTokenProvider.Option>
- Enclosing interface:
- IdTokenProvider
public static enum IdTokenProvider.Option extends java.lang.Enum<IdTokenProvider.Option>
Enum of various credential-specific options to apply to the token.ComputeEngineCredentials
- FORMAT_FULL
- LICENSES_TRUE
ImpersonatedCredential- INCLUDE_EMAIL
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FORMAT_FULL
INCLUDE_EMAIL
LICENSES_TRUE
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
option
-
Constructor Summary
Constructors Modifier Constructor Description private
Option(java.lang.String option)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getOption()
static IdTokenProvider.Option
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static IdTokenProvider.Option[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FORMAT_FULL
public static final IdTokenProvider.Option FORMAT_FULL
-
LICENSES_TRUE
public static final IdTokenProvider.Option LICENSES_TRUE
-
INCLUDE_EMAIL
public static final IdTokenProvider.Option INCLUDE_EMAIL
-
-
Method Detail
-
values
public static IdTokenProvider.Option[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IdTokenProvider.Option c : IdTokenProvider.Option.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IdTokenProvider.Option valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getOption
public java.lang.String getOption()
-
-