|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.nimbusds.oauth2.sdk.id.Identifier com.nimbusds.oauth2.sdk.GrantType
@Immutable public final class GrantType
Authorisation grant type. This class is immutable.
Field Summary | |
---|---|
static GrantType |
AUTHORIZATION_CODE
Authorisation code. |
static GrantType |
CLIENT_CREDENTIALS
Client credentials. |
static GrantType |
PASSWORD
Password. |
static GrantType |
REFRESH_TOKEN
Refresh token. |
Fields inherited from class com.nimbusds.oauth2.sdk.id.Identifier |
---|
DEFAULT_BYTE_LENGTH |
Constructor Summary | |
---|---|
GrantType(String value)
Creates a new OAuth 2.0 grant type with the specified value. |
Method Summary | |
---|---|
boolean |
equals(Object object)
Overrides Object.equals() . |
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier |
---|
getValue, hashCode, toJSONString, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final GrantType AUTHORIZATION_CODE
public static final GrantType REFRESH_TOKEN
public static final GrantType PASSWORD
public static final GrantType CLIENT_CREDENTIALS
Constructor Detail |
---|
public GrantType(String value)
value
- The grant type value. Must not be null
or
empty string.Method Detail |
---|
public boolean equals(Object object)
Identifier
Object.equals()
.
equals
in class Identifier
object
- The object to compare to.
true
if the objects have the same value, otherwise
false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |