java.lang.Object | |
↳ | com.atlassian.jira.security.xsrf.SimpleXsrfTokenGenerator |
Simple implementation of XsrfTokenGenerator that stores a unique value in a cookie.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.jira.security.xsrf.XsrfTokenGenerator
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the token from the current request, generating a new one if none is found
| |||||||||||
Gets the token from the current request, optionally generating a new one if none is found
| |||||||||||
Gets the token from the current request, optionally generating a new one if none is found
| |||||||||||
Gets the token from the current request, generating a new one if none is found
| |||||||||||
Gets the token from the current request, generating a new one if none is found
| |||||||||||
This returns true of the token was generated by an authenticated user
| |||||||||||
Gets the token from the current request, generating a new one if none is found
| |||||||||||
Convenience method which will return the name to be used for a supplied XsrfToken in a request.
| |||||||||||
Validate a form token received as part of a web request
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.security.xsrf.XsrfTokenGenerator
|
Gets the token from the current request, generating a new one if none is found
httpServletRequest | the request the token is being generated for |
---|
Gets the token from the current request, optionally generating a new one if none is found
httpServletRequest | the request the token is being generated for |
---|---|
create | true to create token if none is found |
Gets the token from the current request, optionally generating a new one if none is found
create | true to create token if none is found |
---|
Gets the token from the current request, generating a new one if none is found
Gets the token from the current request, generating a new one if none is found
request | the request the token is being generated for |
---|
This returns true of the token was generated by an authenticated user
token | the XSRF token in question |
---|
Gets the token from the current request, generating a new one if none is found
request | request that contains the form token. |
---|
Convenience method which will return the name to be used for a supplied XsrfToken in a request.
Validate a form token received as part of a web request
httpServletRequest | the request the token was received in |
---|---|
token | the token |