List of usage examples for org.springframework.security.web.authentication.session SessionAuthenticationStrategy onAuthentication
void onAuthentication(Authentication authentication, HttpServletRequest request, HttpServletResponse response) throws SessionAuthenticationException;
From source file:de.itsvs.cwtrpc.security.RpcSessionManagementFilter.java
protected void applySessionAuthenticationStrategy(Authentication authentication, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { final SessionAuthenticationStrategy sessionAuthenticationStrategy; sessionAuthenticationStrategy = getSessionAuthenticationStrategy(); if (!appliedSessionAuthenticationStrategy(request, sessionAuthenticationStrategy)) { sessionAuthenticationStrategy.onAuthentication(authentication, request, response); saveAppliedSessionAuthenticationStrategy(request, sessionAuthenticationStrategy); } else {/* ww w . j a va2 s .com*/ log.debug("Session authentication strategy " + "has been applied already"); } }
From source file:de.itsvs.cwtrpc.security.AbstractRpcAuthenticationProcessingFilter.java
protected void applySessionAuthenticationStrategy(Authentication authentication, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { final SessionAuthenticationStrategy sessionAuthenticationStrategy; sessionAuthenticationStrategy = getSessionAuthenticationStrategy(); if (!RpcSessionManagementFilter.appliedSessionAuthenticationStrategy(request, sessionAuthenticationStrategy)) { sessionAuthenticationStrategy.onAuthentication(authentication, request, response); RpcSessionManagementFilter.saveAppliedSessionAuthenticationStrategy(request, sessionAuthenticationStrategy); } else {// www. j av a 2 s . com log.debug("Session authentication strategy " + "has been applied already"); } }
From source file:org.springframework.security.web.authentication.session.CompositeSessionAuthenticationStrategy.java
public void onAuthentication(Authentication authentication, HttpServletRequest request, HttpServletResponse response) throws SessionAuthenticationException { for (SessionAuthenticationStrategy delegate : this.delegateStrategies) { if (this.logger.isDebugEnabled()) { this.logger.debug("Delegating to " + delegate); }//from w w w.j a va 2 s . co m delegate.onAuthentication(authentication, request, response); } }