Package com.aquima.web.webinterceptor
Class CsrfException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.aquima.web.webinterceptor.CsrfException
- All Implemented Interfaces:
Serializable
Exception used to indicate a CSRF verification failure.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCsrfException
(String errorMessage, boolean terminateSession, com.blueriq.component.api.IAquimaSession session) Constructs the CsrfException -
Method Summary
Modifier and TypeMethodDescriptioncom.blueriq.component.api.IAquimaSession
Returns the session that caused this exception to occurboolean
Indicated whether the session should be terminated if this exception occursMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CsrfException
public CsrfException(String errorMessage, boolean terminateSession, com.blueriq.component.api.IAquimaSession session) Constructs the CsrfException- Parameters:
errorMessage
- the error message that should be loggedterminateSession
- whether the Aquima Session should be terminatedsession
- the IAquimaSession where the CSRF error was detected
-
-
Method Details
-
terminateSession
public boolean terminateSession()Indicated whether the session should be terminated if this exception occurs- Returns:
- whether the Aquima Session should be terminated
-
getSession
public com.blueriq.component.api.IAquimaSession getSession()Returns the session that caused this exception to occur- Returns:
- the Aquima Session in which this exception occurred
-