com.nimbusds.oauth2.sdk
Class GrantType

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

@Immutable
public final class GrantType
extends Identifier

Authorisation grant type. This class is immutable.

Author:
Vladimir Dzhuvinov

Field Summary
static GrantType AUTHORIZATION_CODE
          Authorisation code.
static GrantType CLIENT_CREDENTIALS
          Client credentials.
static GrantType PASSWORD
          Password.
static GrantType REFRESH_TOKEN
          Refresh token.
 
Constructor Summary
GrantType(String value)
          Creates a new OAuth 2.0 grant 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

AUTHORIZATION_CODE

public static final GrantType AUTHORIZATION_CODE
Authorisation code.


REFRESH_TOKEN

public static final GrantType REFRESH_TOKEN
Refresh token.


PASSWORD

public static final GrantType PASSWORD
Password.


CLIENT_CREDENTIALS

public static final GrantType CLIENT_CREDENTIALS
Client credentials.

Constructor Detail

GrantType

public GrantType(String value)
Creates a new OAuth 2.0 grant type with the specified value.

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