GWTP Dispatch client 0.7-redhat-1

com.gwtplatform.dispatch.client
Class DefaultSecurityCookieAccessor

java.lang.Object
  extended by com.gwtplatform.dispatch.client.DefaultSecurityCookieAccessor
All Implemented Interfaces:
SecurityCookieAccessor

public class DefaultSecurityCookieAccessor
extends Object
implements SecurityCookieAccessor

This class provides access to the session id client side by looking into a cookie on the browser. This will work to prevent XSRF attack.

To use this class you have to bind a constant string annotated with @ SecurityCookie to your desired cookie name.

Author:
Philippe Beaudoin

Field Summary
 String cookieName
           
 
Constructor Summary
DefaultSecurityCookieAccessor()
           
 
Method Summary
 String getCookieContent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cookieName

@Inject(optional=true)
public String cookieName
Constructor Detail

DefaultSecurityCookieAccessor

public DefaultSecurityCookieAccessor()
Method Detail

getCookieContent

public String getCookieContent()
Specified by:
getCookieContent in interface SecurityCookieAccessor

GWTP Dispatch client 0.7-redhat-1

Copyright © 2010-2013 JBoss by Red Hat. All Rights Reserved.