org.apache.camel.component.gae.auth
Class GAuthTokenSecret

java.lang.Object
  extended by org.apache.camel.component.gae.auth.GAuthTokenSecret

public class GAuthTokenSecret
extends Object

A request token secret container with marshalling/unmarshalling methods to and from a cookie.

See Also:
GAuthAuthorizeBinding, GAuthUpgradeBinding

Field Summary
static String COOKIE_NAME
          Name of the request token secret cookie.
 
Constructor Summary
GAuthTokenSecret(String value)
          Creates a new GAuthTokenSecret
 
Method Summary
static GAuthTokenSecret fromCookie(String cookies)
          Create a GAuthTokenSecret from a cookies string.
 String getValue()
          Returns the request token secret.
 String toCookie()
          Creates a cookie from this GAuthTokenSecret.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COOKIE_NAME

public static final String COOKIE_NAME
Name of the request token secret cookie.

See Also:
Constant Field Values
Constructor Detail

GAuthTokenSecret

public GAuthTokenSecret(String value)
Creates a new GAuthTokenSecret

Parameters:
value - request token secret.
Method Detail

getValue

public String getValue()
Returns the request token secret.


toCookie

public String toCookie()
Creates a cookie from this GAuthTokenSecret.


fromCookie

public static GAuthTokenSecret fromCookie(String cookies)
Create a GAuthTokenSecret from a cookies string.

Parameters:
cookies - cookies string.
Returns:
either an GAuthTokenSecret instance or null if there's no cookie with name COOKIE_NAME.


Apache Camel