Package com.nimbusds.oauth2.sdk.token
Class AccessTokenType
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.id.Identifier
-
- com.nimbusds.oauth2.sdk.token.AccessTokenType
-
- All Implemented Interfaces:
Serializable
,Comparable<Identifier>
,net.minidev.json.JSONAware
@Immutable public final class AccessTokenType extends Identifier
Access token type.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static AccessTokenType
BEARER
Bearer, see OAuth 2.0 Bearer Token Usage (RFC 6750).static AccessTokenType
MAC
MAC, see OAuth 2.0 Message Authentication Code (MAC) Tokens (draft-ietf-oauth-v2-http-mac-05).static AccessTokenType
UNKNOWN
Unknown.-
Fields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom
-
-
Constructor Summary
Constructors Constructor Description AccessTokenType(String value)
Creates a new access token type with the specified value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
-
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, getValue, hashCode, toJSONString, toString, toStringList
-
-
-
-
Field Detail
-
BEARER
public static final AccessTokenType BEARER
Bearer, see OAuth 2.0 Bearer Token Usage (RFC 6750).
-
MAC
public static final AccessTokenType MAC
MAC, see OAuth 2.0 Message Authentication Code (MAC) Tokens (draft-ietf-oauth-v2-http-mac-05).
-
UNKNOWN
public static final AccessTokenType UNKNOWN
Unknown.
-
-
Constructor Detail
-
AccessTokenType
public AccessTokenType(String value)
Creates a new access token type with the specified value.- Parameters:
value
- The access token type value. Must not benull
or empty string.
-
-
Method Detail
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classIdentifier
-
-