com.nimbusds.oauth2.sdk
Class ResponseType.Value

java.lang.Object
  extended by com.nimbusds.oauth2.sdk.id.Identifier
      extended by com.nimbusds.oauth2.sdk.ResponseType.Value
All Implemented Interfaces:
net.minidev.json.JSONAware
Enclosing class:
ResponseType

@Immutable
public static final class ResponseType.Value
extends Identifier

Authorisation response type value. This class is immutable.


Field Summary
static ResponseType.Value CODE
          Authorisation code.
static ResponseType.Value TOKEN
          Access token, with optional refresh token.
 
Constructor Summary
ResponseType.Value(String value)
          Creates a new response type 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

CODE

public static final ResponseType.Value CODE
Authorisation code.


TOKEN

public static final ResponseType.Value TOKEN
Access token, with optional refresh token.

Constructor Detail

ResponseType.Value

public ResponseType.Value(String value)
Creates a new response type value.

Parameters:
value - The response 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.