nl.surfnet.coin.api.playground
Enum AccessTokenRequestOption
java.lang.Object
java.lang.Enum<AccessTokenRequestOption>
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)
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
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-2012 SURFnet bv, The Netherlands. All Rights Reserved.