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 AuthenticationManager
authenticationManager
-
Constructor Summary
Constructors Constructor Description CurrentAuthenticationResolvingProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processRequest(org.craftercms.commons.http.RequestContext context, RequestSecurityProcessorChain processorChain)
Sets the authentication for the current request.void
setAuthenticationManager(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 Exception
Sets the authentication for the current request. If theprofileLastModified
timestamp is in the request, and it doesn't match the one from the current profile, a reload of the profile is forced.- Specified by:
processRequest
in 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
-
-