Class CheckCSRF<S,​U>

  • All Implemented Interfaces:
    Between<S,​U>

    public class CheckCSRF<S,​U>
    extends java.lang.Object
    implements Between<S,​U>
    • Constructor Detail

      • CheckCSRF

        public CheckCSRF​(java.lang.String cookieName,
                         java.lang.String formFieldName,
                         DoubleSubmitCSRF doubleSubmitCSRF)
    • Method Detail

      • onHalt

        protected void onHalt​(HaltException e,
                              Response response)
        This method will be called before a Halt Exception is thrown. Override this method if you wish to change the behavior on the response right before a Halt Exception is going to be thrown. An Example would be, you may want to redirect the user to a login page.
        Parameters:
        e - a HaltException
        response - a Response
      • getCookieName

        public java.lang.String getCookieName()
      • setCookieName

        public void setCookieName​(java.lang.String cookieName)
      • getFormFieldName

        public java.lang.String getFormFieldName()
      • setFormFieldName

        public void setFormFieldName​(java.lang.String formFieldName)
      • setDoubleSubmitCSRF

        public void setDoubleSubmitCSRF​(DoubleSubmitCSRF doubleSubmitCSRF)