public class AddSecurityCookiesProcessor extends Object implements RequestSecurityProcessor
RequestSecurityProcessor implementation that creates a wrapper so that
the ticket and profile last update cookies are added to the response, just before it is sent to the client.| Modifier and Type | Class and Description |
|---|---|
protected class |
AddSecurityCookiesProcessor.AddSecurityCookiesResponseWrapper |
| Modifier and Type | Field and Description |
|---|---|
protected org.craftercms.commons.http.CookieManager |
profileLastModifiedCookieManager |
protected org.craftercms.commons.http.CookieManager |
ticketCookieManager |
| Constructor and Description |
|---|
AddSecurityCookiesProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
processRequest(org.craftercms.commons.http.RequestContext context,
RequestSecurityProcessorChain processorChain)
Wraps the response in a wrapper that adds (or deletes) the security cookies before the response is sent.
|
void |
setProfileLastModifiedCookieManager(org.craftercms.commons.http.CookieManager profileLastModifiedCookieManager) |
void |
setTicketCookieManager(org.craftercms.commons.http.CookieManager ticketCookieManager) |
protected AddSecurityCookiesProcessor.AddSecurityCookiesResponseWrapper |
wrapResponse(org.craftercms.commons.http.RequestContext context) |
protected org.craftercms.commons.http.CookieManager ticketCookieManager
protected org.craftercms.commons.http.CookieManager profileLastModifiedCookieManager
public void setTicketCookieManager(org.craftercms.commons.http.CookieManager ticketCookieManager)
public void setProfileLastModifiedCookieManager(org.craftercms.commons.http.CookieManager profileLastModifiedCookieManager)
public void processRequest(org.craftercms.commons.http.RequestContext context,
RequestSecurityProcessorChain processorChain)
throws Exception
processRequest in interface RequestSecurityProcessorcontext - the context which holds the current request and responseprocessorChain - the RequestSecurityProcessorChain, used to call the next processorExceptionprotected AddSecurityCookiesProcessor.AddSecurityCookiesResponseWrapper wrapResponse(org.craftercms.commons.http.RequestContext context)
Copyright © 2023 CrafterCMS. All rights reserved.