Package com.nimbusds.oauth2.sdk.token
Class TypelessAccessToken
java.lang.Object
com.nimbusds.oauth2.sdk.id.Identifier
com.nimbusds.oauth2.sdk.token.Token
com.nimbusds.oauth2.sdk.token.AccessToken
com.nimbusds.oauth2.sdk.token.TypelessAccessToken
- All Implemented Interfaces:
Serializable,Comparable<Identifier>,net.minidev.json.JSONAware
Typeless access token, cannot be serialised. Intended to represent parsed
access tokens which type cannot be inferred.
Related specifications:
- OAuth 2.0 (RFC 6749)
- See Also:
-
Field Summary
Fields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom -
Constructor Summary
ConstructorsConstructorDescriptionTypelessAccessToken(String value) Creates a new minimal typeless access token with the specified value. -
Method Summary
Modifier and TypeMethodDescriptionbooleanOperation not supported.net.minidev.json.JSONObjectOperation not supported.Methods inherited from class com.nimbusds.oauth2.sdk.token.AccessToken
getAuthorizationDetails, getIssuedTokenType, getLifetime, getParameterNames, getScope, getType, parse, parse, parse, parse, toJSONStringMethods inherited from class com.nimbusds.oauth2.sdk.token.Token
getCustomParametersMethods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, getValue, hashCode, toString, toStringList
-
Constructor Details
-
TypelessAccessToken
Creates a new minimal typeless access token with the specified value. The optional lifetime and scope are left undefined.- Parameters:
value- The access token value. Must not benullor empty string.
-
-
Method Details
-
toJSONObject
Operation not supported.- Overrides:
toJSONObjectin classAccessToken- Returns:
- The token parameters as a JSON object.
- Throws:
UnsupportedOperationException- Serialisation is not supported.
-
toAuthorizationHeader
Operation not supported.- Specified by:
toAuthorizationHeaderin classAccessToken- Returns:
- The
Authorizationheader value. - Throws:
UnsupportedOperationException- Serialisation is not supported.
-
equals
- Overrides:
equalsin classIdentifier
-