com.nimbusds.oauth2.sdk.token
Class TypelessAccessToken

java.lang.Object
  extended by com.nimbusds.oauth2.sdk.id.Identifier
      extended by com.nimbusds.oauth2.sdk.token.Token
          extended by com.nimbusds.oauth2.sdk.token.AccessToken
              extended by 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:

Author:
Vladimir Dzhuvinov

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

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.
Method Detail

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.