public final class AuthorizationGrantType
extends java.lang.Object
implements java.io.Serializable
The OAuth 2.0 Authorization Framework defines four standard grant types: authorization code, implicit, resource owner password credentials, and client credentials. It also provides an extensibility mechanism for defining additional grant types.
Modifier and Type | Field and Description |
---|---|
static AuthorizationGrantType |
AUTHORIZATION_CODE |
static AuthorizationGrantType |
CLIENT_CREDENTIALS |
static AuthorizationGrantType |
IMPLICIT
Deprecated.
|
static AuthorizationGrantType |
PASSWORD |
static AuthorizationGrantType |
REFRESH_TOKEN |
Constructor and Description |
---|
AuthorizationGrantType(java.lang.String value)
Constructs an
AuthorizationGrantType using the provided value. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getValue()
Returns the value of the authorization grant type.
|
int |
hashCode() |
public static final AuthorizationGrantType AUTHORIZATION_CODE
@Deprecated public static final AuthorizationGrantType IMPLICIT
public static final AuthorizationGrantType REFRESH_TOKEN
public static final AuthorizationGrantType CLIENT_CREDENTIALS
public static final AuthorizationGrantType PASSWORD
public AuthorizationGrantType(java.lang.String value)
AuthorizationGrantType
using the provided value.value
- the value of the authorization grant typepublic java.lang.String getValue()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object