Class CSRF

java.lang.Object
org.javalite.activeweb.CSRF

public class CSRF extends Object
Responsible for generating tokens for CSRF protection support.
  • Field Details

  • Constructor Details

    • CSRF

      public CSRF()
  • Method Details

    • setTokenProvider

      public static void setTokenProvider(org.javalite.activeweb.CSRF.TokenProvider provider)
      Use in case you want to use a project-level provider.
      Parameters:
      provider - instance of a provider.
    • verificationEnabled

      public static boolean verificationEnabled()
    • enableVerification

      public static void enableVerification()
    • disableVerification

      public static void disableVerification()
    • token

      public static String token()
    • name

      public static String name()