Class InvalidCsrfTokenException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.springframework.security.access.AccessDeniedException
-
- org.springframework.security.web.csrf.CsrfException
-
- org.springframework.security.web.csrf.InvalidCsrfTokenException
-
- All Implemented Interfaces:
java.io.Serializable
public class InvalidCsrfTokenException extends CsrfException
Thrown when an expectedCsrfToken
exists, but it does not match the value present on theHttpServletRequest
- Since:
- 3.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidCsrfTokenException(CsrfToken expectedAccessToken, java.lang.String actualAccessToken)
-
-
-
Constructor Detail
-
InvalidCsrfTokenException
public InvalidCsrfTokenException(CsrfToken expectedAccessToken, java.lang.String actualAccessToken)
- Parameters:
expectedAccessToken
-actualAccessToken
-
-
-