com.nimbusds.oauth2.sdk.token
Class AccessTokenType

java.lang.Object
  extended by com.nimbusds.oauth2.sdk.id.Identifier
      extended by com.nimbusds.oauth2.sdk.token.AccessTokenType
All Implemented Interfaces:
net.minidev.json.JSONAware

@Immutable
public final class AccessTokenType
extends Identifier

Access token type. This class is immutable.

Author:
Vladimir Dzhuvinov

Field Summary
static AccessTokenType BEARER
          Bearer, see OAuth 2.0 Bearer Token Usage (RFC 6750).
static AccessTokenType MAC
          MAC, see OAuth 2.0 Message Authentication Code (MAC) Tokens (draft-ietf-oauth-v2-http-mac-02).
static AccessTokenType UNKNOWN
          Unknown.
 
Constructor Summary
AccessTokenType(String value)
          Creates a new access token type with the specified value.
 
Method Summary
 boolean equals(Object object)
          Overrides Object.equals().
 
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
getValue, hashCode, toJSONString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BEARER

public static final AccessTokenType BEARER
Bearer, see OAuth 2.0 Bearer Token Usage (RFC 6750).


MAC

public static final AccessTokenType MAC
MAC, see OAuth 2.0 Message Authentication Code (MAC) Tokens (draft-ietf-oauth-v2-http-mac-02).


UNKNOWN

public static final AccessTokenType UNKNOWN
Unknown.

Constructor Detail

AccessTokenType

public AccessTokenType(String value)
Creates a new access token type with the specified value.

Parameters:
value - The access token type value. Must not be null or empty string.
Method Detail

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.