Class CurrentAuthenticationResolvingProcessor
- java.lang.Object
-
- org.craftercms.security.processors.impl.CurrentAuthenticationResolvingProcessor
-
- All Implemented Interfaces:
RequestSecurityProcessor
public class CurrentAuthenticationResolvingProcessor extends Object implements RequestSecurityProcessor
Obtains and sets the authentication for the current request.- Author:
- Alfonso Vásquez
-
-
Field Summary
Fields Modifier and Type Field Description protected AuthenticationManagerauthenticationManager
-
Constructor Summary
Constructors Constructor Description CurrentAuthenticationResolvingProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessRequest(org.craftercms.commons.http.RequestContext context, RequestSecurityProcessorChain processorChain)Sets the authentication for the current request.voidsetAuthenticationManager(AuthenticationManager authenticationManager)
-
-
-
Field Detail
-
authenticationManager
protected AuthenticationManager authenticationManager
-
-
Method Detail
-
setAuthenticationManager
public void setAuthenticationManager(AuthenticationManager authenticationManager)
-
processRequest
public void processRequest(org.craftercms.commons.http.RequestContext context, RequestSecurityProcessorChain processorChain) throws ExceptionSets the authentication for the current request. If theprofileLastModifiedtimestamp is in the request, and it doesn't match the one from the current profile, a reload of the profile is forced.- Specified by:
processRequestin interfaceRequestSecurityProcessor- Parameters:
context- the context which holds the current request and other security info pertinent to the requestprocessorChain- the processor chain, used to call the next processor- Throws:
Exception
-
-