nl.surfnet.coin.api.playground
Enum AccessTokenRequestOption

java.lang.Object
  extended by java.lang.Enum<AccessTokenRequestOption>
      extended by nl.surfnet.coin.api.playground.AccessTokenRequestOption
All Implemented Interfaces:
Serializable, Comparable<AccessTokenRequestOption>

public enum AccessTokenRequestOption
extends Enum<AccessTokenRequestOption>

The different ways to obtain an AccessToken (see http://tools.ietf.org/html/draft-ietf-oauth-v2-26#section-4.1.3)


Enum Constant Summary
AUTHENTICATION_HEADER
           
ENTITY_BODY_PARAMETERS
           
QUERY_STRING_PARAMETERS
           
 
Method Summary
 String getOption()
           
static AccessTokenRequestOption valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AccessTokenRequestOption valueOfOption(String optionValue)
           
static AccessTokenRequestOption[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AUTHENTICATION_HEADER

public static final AccessTokenRequestOption AUTHENTICATION_HEADER

QUERY_STRING_PARAMETERS

public static final AccessTokenRequestOption QUERY_STRING_PARAMETERS

ENTITY_BODY_PARAMETERS

public static final AccessTokenRequestOption ENTITY_BODY_PARAMETERS
Method Detail

values

public static AccessTokenRequestOption[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AccessTokenRequestOption c : AccessTokenRequestOption.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AccessTokenRequestOption valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getOption

public String getOption()

valueOfOption

public static AccessTokenRequestOption valueOfOption(String optionValue)


Copyright © 2009-2013 SURFnet bv, The Netherlands. All Rights Reserved.