com.gwtplatform.dispatch.client
Class DefaultSecurityCookieAccessor
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cookieName
@Inject(optional=true)
public String cookieName
DefaultSecurityCookieAccessor
public DefaultSecurityCookieAccessor()
getCookieContent
public String getCookieContent()
- Specified by:
getCookieContent
in interface SecurityCookieAccessor
Copyright © 2010-2013 JBoss by Red Hat. All Rights Reserved.