@Inject RandomSecurityCookieFilter(@SecurityCookie String securityCookieName, SecureRandomSingleton random) { super(securityCookieName, random); } }
@Inject RandomSecurityCookieFilter(@SecurityCookie String securityCookieName, SecureRandomSingleton random) { super(securityCookieName, random); } }
@Inject HttpSessionSecurityCookieFilter(@SecurityCookie String securityCookieName, Provider<HttpSession> session) { super(securityCookieName); this.session = session; }
@Inject RandomSecurityCookieFilter(@SecurityCookie String securityCookieName, SecureRandomSingleton random) { super(securityCookieName, random); } }
/** * 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. * <p/> * To use this class you have to bind a constant string annotated with {@code @}{@link SecurityCookie} to your desired * cookie name. */ public class DefaultSecurityCookieAccessor implements SecurityCookieAccessor { @Inject(optional = true) @SecurityCookie public String cookieName; public String getCookieContent() { if (cookieName == null) { return null; } return Cookies.getCookie(cookieName); } }
/** * 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. * <p/> * To use this class you have to bind a constant string annotated with {@code @}{@link SecurityCookie} to your desired * cookie name. */ public class DefaultSecurityCookieAccessor implements SecurityCookieAccessor { @Inject(optional = true) @SecurityCookie public String cookieName; @Override public String getCookieContent() { if (cookieName == null) { return null; } return Cookies.getCookie(cookieName); } }
/** * 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. * <p/> * To use this class you have to bind a constant string annotated with {@code @} * {@link SecurityCookie} to your desired cookie name. * * @author Philippe Beaudoin */ public class DefaultSecurityCookieAccessor implements SecurityCookieAccessor { @Inject(optional = true) @SecurityCookie public String cookieName; public String getCookieContent() { if (cookieName == null) { return null; } return Cookies.getCookie(cookieName); } }
@SecurityCookie protected String securityCookieName;
@SecurityCookie protected String securityCookieName;
@SecurityCookie protected String securityCookieName;