public class CsrfServiceImpl extends Object implements CsrfService
Constructor and Description |
---|
CsrfServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected String[] |
exemptPaths() |
ConfigurationService |
getConfigurationService() |
ParameterService |
getParameterService() |
String |
getSessionToken(javax.servlet.http.HttpServletRequest request) |
protected boolean |
isEnabled() |
protected boolean |
isExemptPath(javax.servlet.http.HttpServletRequest request)
Returns true if the given requestUri matches one of the provided exempt paths.
|
void |
setConfigurationService(ConfigurationService configurationService) |
void |
setParameterService(ParameterService parameterService) |
boolean |
validateCsrfIfNecessary(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
public CsrfServiceImpl()
public boolean validateCsrfIfNecessary(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
validateCsrfIfNecessary
in interface CsrfService
protected boolean isExemptPath(javax.servlet.http.HttpServletRequest request)
protected String[] exemptPaths()
protected boolean isEnabled()
public String getSessionToken(javax.servlet.http.HttpServletRequest request)
getSessionToken
in interface CsrfService
public ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
public ParameterService getParameterService()
public void setParameterService(ParameterService parameterService)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.