Class OAuth2GrantType

java.lang.Object
com.azure.core.util.ExpandableStringEnum<OAuth2GrantType>
com.azure.resourcemanager.apimanagement.models.OAuth2GrantType
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class OAuth2GrantType extends com.azure.core.util.ExpandableStringEnum<OAuth2GrantType>
OAuth2 grant type options.
  • Field Details

    • AUTHORIZATION_CODE

      public static final OAuth2GrantType AUTHORIZATION_CODE
      Static value AuthorizationCode for OAuth2GrantType.
    • CLIENT_CREDENTIALS

      public static final OAuth2GrantType CLIENT_CREDENTIALS
      Static value ClientCredentials for OAuth2GrantType.
  • Constructor Details

    • OAuth2GrantType

      @Deprecated public OAuth2GrantType()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of OAuth2GrantType value.
  • Method Details

    • fromString

      public static OAuth2GrantType fromString(String name)
      Creates or finds a OAuth2GrantType from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding OAuth2GrantType.
    • values

      public static Collection<OAuth2GrantType> values()
      Gets known OAuth2GrantType values.
      Returns:
      known OAuth2GrantType values.