Enum GrantType

java.lang.Object
java.lang.Enum<GrantType>
com.okta.sdk.resource.model.GrantType
All Implemented Interfaces:
Serializable, Comparable<GrantType>, java.lang.constant.Constable

public enum GrantType extends Enum<GrantType>
Determines the mechanism Okta uses to authorize the creation of the tokens.
  • Enum Constant Details

    • AUTHORIZATION_CODE

      public static final GrantType AUTHORIZATION_CODE
    • CLIENT_CREDENTIALS

      public static final GrantType CLIENT_CREDENTIALS
    • IMPLICIT

      public static final GrantType IMPLICIT
    • INTERACTION_CODE

      public static final GrantType INTERACTION_CODE
    • PASSWORD

      public static final GrantType PASSWORD
    • REFRESH_TOKEN

      public static final GrantType REFRESH_TOKEN
    • URN_IETF_PARAMS_OAUTH_GRANT_TYPE_DEVICE_CODE

      public static final GrantType URN_IETF_PARAMS_OAUTH_GRANT_TYPE_DEVICE_CODE
    • URN_IETF_PARAMS_OAUTH_GRANT_TYPE_JWT_BEARER

      public static final GrantType URN_IETF_PARAMS_OAUTH_GRANT_TYPE_JWT_BEARER
    • URN_IETF_PARAMS_OAUTH_GRANT_TYPE_SAML2_BEARER

      public static final GrantType URN_IETF_PARAMS_OAUTH_GRANT_TYPE_SAML2_BEARER
    • URN_IETF_PARAMS_OAUTH_GRANT_TYPE_TOKEN_EXCHANGE

      public static final GrantType URN_IETF_PARAMS_OAUTH_GRANT_TYPE_TOKEN_EXCHANGE
    • URN_OPENID_PARAMS_GRANT_TYPE_CIBA

      public static final GrantType URN_OPENID_PARAMS_GRANT_TYPE_CIBA
    • URN_OKTA_PARAMS_OAUTH_GRANT_TYPE_OTP

      public static final GrantType URN_OKTA_PARAMS_OAUTH_GRANT_TYPE_OTP
    • URN_OKTA_PARAMS_OAUTH_GRANT_TYPE_OOB

      public static final GrantType URN_OKTA_PARAMS_OAUTH_GRANT_TYPE_OOB
    • HTTP_AUTH0_COM_OAUTH_GRANT_TYPE_MFA_OTP

      public static final GrantType HTTP_AUTH0_COM_OAUTH_GRANT_TYPE_MFA_OTP
    • HTTP_AUTH0_COM_OAUTH_GRANT_TYPE_MFA_OOB

      public static final GrantType HTTP_AUTH0_COM_OAUTH_GRANT_TYPE_MFA_OOB
    • UNKNOWN_DEFAULT_OPEN_API

      public static final GrantType UNKNOWN_DEFAULT_OPEN_API
  • Method Details

    • values

      public static GrantType[] 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 GrantType 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
    • getValue

      public String getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<GrantType>
    • fromValue

      public static GrantType fromValue(String value)
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string