org.springframework.security.oauth.common
Enum OAuthConsumerParameter

java.lang.Object
  extended by java.lang.Enum<OAuthConsumerParameter>
      extended by org.springframework.security.oauth.common.OAuthConsumerParameter
All Implemented Interfaces:
Serializable, Comparable<OAuthConsumerParameter>

public enum OAuthConsumerParameter
extends Enum<OAuthConsumerParameter>

Enumeration for consumer parameters.

Author:
Ryan Heaton

Enum Constant Summary
oauth_callback
          Parameter for the callback.
oauth_consumer_key
          Parameter for the consumer key.
oauth_nonce
          Parameter for the nonce.
oauth_signature
          Parameter for the signature.
oauth_signature_method
          Parameter for the signature method.
oauth_timestamp
          Parameter for the timestamp.
oauth_token
          Parameter for the oauth token.
oauth_verifier
          Parameter for the verifier.
oauth_version
          Parameter for the version.
 
Method Summary
static OAuthConsumerParameter valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OAuthConsumerParameter[] 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

oauth_consumer_key

public static final OAuthConsumerParameter oauth_consumer_key
Parameter for the consumer key.


oauth_token

public static final OAuthConsumerParameter oauth_token
Parameter for the oauth token.


oauth_signature_method

public static final OAuthConsumerParameter oauth_signature_method
Parameter for the signature method.


oauth_signature

public static final OAuthConsumerParameter oauth_signature
Parameter for the signature.


oauth_timestamp

public static final OAuthConsumerParameter oauth_timestamp
Parameter for the timestamp.


oauth_nonce

public static final OAuthConsumerParameter oauth_nonce
Parameter for the nonce.


oauth_version

public static final OAuthConsumerParameter oauth_version
Parameter for the version.


oauth_callback

public static final OAuthConsumerParameter oauth_callback
Parameter for the callback.


oauth_verifier

public static final OAuthConsumerParameter oauth_verifier
Parameter for the verifier.

Method Detail

values

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

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

valueOf

public static OAuthConsumerParameter 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 © 2012. All Rights Reserved.