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:
- Comparable<AccessToken>, net.minidev.json.JSONAware
public class TypelessAccessToken
- extends AccessToken
Typeless access token, cannot be serialised. Intended to represent parsed
access tokens which type cannot be inferred.
Related specifications:
- OAuth 2.0 (RFC 6749), sections 1.4 and 5.1.
- Author:
- Vladimir Dzhuvinov
TypelessAccessToken
public TypelessAccessToken(String value)
- 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 be null
or
empty string.
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
- Operation not supported.
- Overrides:
toJSONObject
in class AccessToken
- Returns:
- The token parameters as a JSON object.
- Throws:
UnsupportedOperationException
- Serialisation is not
supported.
toAuthorizationHeader
public String toAuthorizationHeader()
- Operation not supported.
- Specified by:
toAuthorizationHeader
in class AccessToken
- Returns:
- The
Authorization
header value.
- Throws:
UnsupportedOperationException
- Serialisation is not
supported.
equals
public boolean equals(Object object)
- Description copied from class:
Identifier
- Overrides
Object.equals()
.
- Specified by:
equals
in class Identifier
- Parameters:
object
- The object to compare to.
- Returns:
true
if the objects have the same value, otherwise
false
.
Copyright © 2013 NimbusDS. All Rights Reserved.