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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
processRequest
(org.craftercms.commons.http.RequestContext context, RequestSecurityProcessorChain processorChain) Sets the authentication for the current request.void
setAuthenticationManager
(AuthenticationManager authenticationManager)
-
Field Details
-
authenticationManager
-
-
Constructor Details
-
CurrentAuthenticationResolvingProcessor
public CurrentAuthenticationResolvingProcessor()
-
-
Method Details
-
setAuthenticationManager
-
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
-