public class DefaultXsrfTokenService extends Object implements XsrfTokenService
XsrfTokenInterceptor
as a proper adaption turns out
too complex due to the extensive use of ThreadLocals
in the underlying code.Constructor and Description |
---|
DefaultXsrfTokenService(com.atlassian.xwork.XsrfTokenGenerator tokenGenerator) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Pair<String,String> |
generate(javax.servlet.http.HttpServletRequest request)
Deprecated.
since 7.0.1. Use
XsrfTokenService.generateToken(HttpServletRequest) |
com.atlassian.fugue.Maybe<Message> |
validate(javax.servlet.http.HttpServletRequest request)
Deprecated.
since 7.0.1. Use
XsrfTokenService.validateToken(HttpServletRequest) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateToken, validateToken
public DefaultXsrfTokenService(com.atlassian.xwork.XsrfTokenGenerator tokenGenerator)
@Deprecated public com.atlassian.fugue.Pair<String,String> generate(javax.servlet.http.HttpServletRequest request)
XsrfTokenService.generateToken(HttpServletRequest)
XsrfTokenService
generate
in interface XsrfTokenService
request
- the request used to identify the session, will be created if none is present@Deprecated public com.atlassian.fugue.Maybe<Message> validate(javax.servlet.http.HttpServletRequest request)
XsrfTokenService.validateToken(HttpServletRequest)
XsrfTokenService
validate
in interface XsrfTokenService
request
- the request used to identify the session and containing the token parameterMaybe.isEmpty()
indicates a successful flowCopyright © 2003–2021 Atlassian. All rights reserved.