Class CrumbIssuerDescriptor<T extends CrumbIssuer>

java.lang.Object
hudson.model.Descriptor<CrumbIssuer>
hudson.security.csrf.CrumbIssuerDescriptor<T>
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Direct Known Subclasses:
DefaultCrumbIssuer.DescriptorImpl

public abstract class CrumbIssuerDescriptor<T extends CrumbIssuer> extends Descriptor<CrumbIssuer>
Describes global configuration for crumb issuers. Create subclasses to specify additional global configuration for custom crumb issuers.
Author:
dty
  • Constructor Details

    • CrumbIssuerDescriptor

      protected CrumbIssuerDescriptor(String salt, String crumbRequestField)
      Crumb issuers always take a salt and a request field name.
      Parameters:
      salt - Salt value
      crumbRequestField - Request parameter name containing crumb from previous response
  • Method Details

    • getCrumbSalt

      public String getCrumbSalt()
      Get the salt value.
    • setCrumbSalt

      public void setCrumbSalt(String salt)
      Set the salt value. Must not be null.
    • getCrumbRequestField

      public String getCrumbRequestField()
      Gets the request parameter name that contains the crumb generated from a previous response.
    • setCrumbRequestField

      public void setCrumbRequestField(String requestField)
      Set the request parameter name. Must not be null.