Class CsrfException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.aquima.web.webinterceptor.CsrfException
All Implemented Interfaces:
Serializable

public class CsrfException extends Exception
Exception used to indicate a CSRF verification failure.
See Also:
  • Constructor Details Link icon

    • CsrfException Link icon

      public CsrfException(String errorMessage, boolean terminateSession, com.blueriq.component.api.IAquimaSession session)
      Constructs the CsrfException
      Parameters:
      errorMessage - the error message that should be logged
      terminateSession - whether the Aquima Session should be terminated
      session - the IAquimaSession where the CSRF error was detected
  • Method Details Link icon

    • terminateSession Link icon

      public boolean terminateSession()
      Indicated whether the session should be terminated if this exception occurs
      Returns:
      whether the Aquima Session should be terminated
    • getSession Link icon

      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