|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nimbusds.oauth2.sdk.id.Identifier
com.nimbusds.oauth2.sdk.token.Token
com.nimbusds.oauth2.sdk.token.AccessToken
com.nimbusds.oauth2.sdk.token.TypelessAccessToken
public class TypelessAccessToken
Typeless access token, cannot be serialised. Intended to represent parsed access tokens which type cannot be inferred.
Related specifications:
Constructor Summary | |
---|---|
TypelessAccessToken(String value)
Creates a new minimal typeless access token with the specified value. |
Method Summary | |
---|---|
boolean |
equals(Object object)
Overrides Object.equals() . |
String |
toAuthorizationHeader()
Operation not supported. |
net.minidev.json.JSONObject |
toJSONObject()
Operation not supported. |
Methods inherited from class com.nimbusds.oauth2.sdk.token.AccessToken |
---|
compareTo, getLifetime, getScope, getType, parse, parse, toJSONString |
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier |
---|
getValue, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TypelessAccessToken(String value)
value
- The access token value. Must not be null
or
empty string.Method Detail |
---|
public net.minidev.json.JSONObject toJSONObject()
toJSONObject
in class AccessToken
UnsupportedOperationException
- Serialisation is not
supported.public String toAuthorizationHeader()
toAuthorizationHeader
in class AccessToken
Authorization
header value.
UnsupportedOperationException
- Serialisation is not
supported.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 |