| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final Log | |
| private String | |
| private Random |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | Returns: the generated nonceThe request. Unused in this method but present for the the benefit of sub-classes. request)Generate a once time token (nonce) for authenticating subsequent requests. |
| public int | |
| protected Log | |
| protected String | |
| public void | init(FilterConfig
The configuration information associated with the filter instance being initialised filterConfig)Overrides org. Overrides default jakarta. Iterates over the configuration parameters and either logs a warning, or throws an exception for any parameter that does not have a matching setter in this filter. |
| protected boolean | isConfigProblemFatal()
Overrides org. Determines if an exception when calling a setter or an unknown configuration attribute triggers the failure of the this filter which in turn will prevent the web application from starting. |
| public void | setDenyStatus(int
HTTP status code denyStatus)Set response status code that is used to reject denied request. |
| public void | setRandomClass(String
The name of the class to use randomClass)Specify the class to use to generate the nonces. |
| denyStatus | back to summary |
|---|---|
| private int denyStatus | |
| log | back to summary |
|---|---|
| private final Log log | |
| randomClass | back to summary |
|---|---|
| private String randomClass | |
| randomSource | back to summary |
|---|---|
| private Random randomSource | |
| CsrfPreventionFilterBase | back to summary |
|---|---|
| public CsrfPreventionFilterBase() | |
| generateNonce | back to summary |
|---|---|
| protected String generateNonce(HttpServletRequest request) Generate a once time token (nonce) for authenticating subsequent requests. The nonce generation is a simplified version of ManagerBase.generateSessionId().
| |
| getDenyStatus | back to summary |
|---|---|
public int getDenyStatus()
| |
| getLogger | back to summary |
|---|---|
| protected Log getLogger() Implements abstract org.
| |
| getRequestedPath | back to summary |
|---|---|
| protected String getRequestedPath(HttpServletRequest request) | |
| init | back to summary |
|---|---|
| public void init(FilterConfig filterConfig) throws ServletException Overrides org. Overrides default jakarta. Doc from org. Iterates over the configuration parameters and either logs a warning, or throws an exception for any parameter that does not have a matching setter in this filter.
| |
| isConfigProblemFatal | back to summary |
|---|---|
| protected boolean isConfigProblemFatal() Overrides org. Doc from org. Determines if an exception when calling a setter or an unknown configuration attribute triggers the failure of the this filter which in turn will prevent the web application from starting.
| |
| setDenyStatus | back to summary |
|---|---|
| public void setDenyStatus(int denyStatus) Set response status code that is used to reject denied request. If none set, the default value of 403 will be used.
| |
| setRandomClass | back to summary |
|---|---|
| public void setRandomClass(String randomClass) Specify the class to use to generate the nonces. Must be in instance of
| |