List of usage examples for com.liferay.portal.kernel.util WebKeys AUTHENTICATION_TOKEN
String AUTHENTICATION_TOKEN
To view the source code for com.liferay.portal.kernel.util WebKeys AUTHENTICATION_TOKEN.
Click Source Link
From source file:de.inovex.auth.token.ignore.AbstractCustomCSRFWhitelistActionFilter.java
License:Apache License
protected String getSessionAuthenticationToken(final ActionRequest actionRrequest) { final HttpSession session = PortalUtil.getHttpServletRequest(actionRrequest).getSession(false); if (session != null) { final String tokenKey = WebKeys.AUTHENTICATION_TOKEN.concat(_CSRF); final String tokenValue = (String) session.getAttribute(tokenKey); LOG.debug("P_Auth session value: " + tokenValue); return tokenValue; } else {// w w w . j av a 2 s . c o m return null; } }