public enum OAuthGrantType extends Enum<OAuthGrantType>
Modifier and Type | Method and Description |
---|---|
static OAuthGrantType |
fromValue(String value) |
String |
getValue() |
String |
toString() |
String |
toUrlQueryString(String prefix)
Convert the instance into URL query string.
|
static OAuthGrantType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OAuthGrantType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OAuthGrantType AUTHORIZATION_CODE
public static final OAuthGrantType CLIENT_CREDENTIALS
public static final OAuthGrantType IMPLICIT
public static final OAuthGrantType INTERACTION_CODE
public static final OAuthGrantType PASSWORD
public static final OAuthGrantType REFRESH_TOKEN
public static final OAuthGrantType URN_IETF_PARAMS_OAUTH_GRANT_TYPE_DEVICE_CODE
public static final OAuthGrantType URN_IETF_PARAMS_OAUTH_GRANT_TYPE_JWT_BEARER
public static final OAuthGrantType URN_IETF_PARAMS_OAUTH_GRANT_TYPE_SAML2_BEARER
public static final OAuthGrantType URN_IETF_PARAMS_OAUTH_GRANT_TYPE_TOKEN_EXCHANGE
public static OAuthGrantType[] values()
for (OAuthGrantType c : OAuthGrantType.values()) System.out.println(c);
public static OAuthGrantType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getValue()
public String toString()
toString
in class Enum<OAuthGrantType>
public static OAuthGrantType fromValue(String value)
Copyright © 2017–2023 Okta. All rights reserved.