@Immutable public class TypelessAccessToken extends AccessToken
Related specifications:
DEFAULT_BYTE_LENGTH
Constructor and Description |
---|
TypelessAccessToken(java.lang.String value)
Creates a new minimal typeless access token with the specified
value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Overrides
Object.equals() . |
java.lang.String |
toAuthorizationHeader()
Operation not supported.
|
net.minidev.json.JSONObject |
toJSONObject()
Operation not supported.
|
getLifetime, getParamNames, getScope, getType, parse, parse, toJSONString
compareTo, getValue, hashCode, toString
public TypelessAccessToken(java.lang.String value)
value
- The access token value. Must not be null
or
empty string.public net.minidev.json.JSONObject toJSONObject()
toJSONObject
in class AccessToken
java.lang.UnsupportedOperationException
- Serialisation is not
supported.public java.lang.String toAuthorizationHeader()
toAuthorizationHeader
in class AccessToken
Authorization
header value.java.lang.UnsupportedOperationException
- Serialisation is not
supported.public boolean equals(java.lang.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
.Copyright © 2015 Connect2id Ltd.. All Rights Reserved.