Enum IdTokenProvider.Option

java.lang.Object
java.lang.Enum<IdTokenProvider.Option>
com.google.auth.oauth2.IdTokenProvider.Option
All Implemented Interfaces:
Serializable, Comparable<IdTokenProvider.Option>
Enclosing interface:
IdTokenProvider

public static enum IdTokenProvider.Option extends Enum<IdTokenProvider.Option>
Enum of various credential-specific options to apply to the token.

ComputeEngineCredentials

  • FORMAT_FULL
  • LICENSES_TRUE

ImpersonatedCredential
  • INCLUDE_EMAIL
  • Enum Constant Details

  • Field Details

    • option

      private final String option
  • Constructor Details

    • Option

      private Option(String option)
  • Method Details

    • values

      public static IdTokenProvider.Option[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static IdTokenProvider.Option valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getOption

      public String getOption()