org.springframework.security.oauth2.client
Enum OAuth2ProtectedResourceDetails.BearerTokenMethod

java.lang.Object
  extended by java.lang.Enum<OAuth2ProtectedResourceDetails.BearerTokenMethod>
      extended by org.springframework.security.oauth2.client.OAuth2ProtectedResourceDetails.BearerTokenMethod
All Implemented Interfaces:
Serializable, Comparable<OAuth2ProtectedResourceDetails.BearerTokenMethod>
Enclosing interface:
OAuth2ProtectedResourceDetails

public static enum OAuth2ProtectedResourceDetails.BearerTokenMethod
extends Enum<OAuth2ProtectedResourceDetails.BearerTokenMethod>

Enumeration of possible methods for bearing the access token for this resource.


Enum Constant Summary
form
          Bear the token in the form body.
header
          Bear the token in an Authorization header.
query
          Bear the token in a query parameter in the URI.
 
Method Summary
static OAuth2ProtectedResourceDetails.BearerTokenMethod valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OAuth2ProtectedResourceDetails.BearerTokenMethod[] 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

header

public static final OAuth2ProtectedResourceDetails.BearerTokenMethod header
Bear the token in an Authorization header.


query

public static final OAuth2ProtectedResourceDetails.BearerTokenMethod query
Bear the token in a query parameter in the URI.


form

public static final OAuth2ProtectedResourceDetails.BearerTokenMethod form
Bear the token in the form body.

Method Detail

values

public static OAuth2ProtectedResourceDetails.BearerTokenMethod[] 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 (OAuth2ProtectedResourceDetails.BearerTokenMethod c : OAuth2ProtectedResourceDetails.BearerTokenMethod.values())
    System.out.println(c);

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

valueOf

public static OAuth2ProtectedResourceDetails.BearerTokenMethod 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


Copyright © 2011. All Rights Reserved.