Class SpecificUsersAuthorizationStrategy.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<AuthorizeProjectStrategy>
org.jenkinsci.plugins.authorizeproject.AuthorizeProjectStrategyDescriptor
org.jenkinsci.plugins.authorizeproject.strategy.SpecificUsersAuthorizationStrategy.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
SpecificUsersAuthorizationStrategy

@Extension public static class SpecificUsersAuthorizationStrategy.DescriptorImpl extends AuthorizeProjectStrategyDescriptor
Our descriptor.
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<AuthorizeProjectStrategy>
    • calcCheckPasswordRequestedUrl

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String calcCheckPasswordRequestedUrl()
      Helper method for computing the check password URL.
      Returns:
      the URL to check password field is required.
    • doCheckPasswordRequested

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String doCheckPasswordRequested(org.kohsuke.stapler.StaplerRequest2 req, @QueryParameter String userid)
      Checks password field is required in configuration page.

      This is called asynchronously.

      Parameters:
      req - the request.
      userid - the userid.
      Returns:
      "true" if password field is required. this should be evaluated as JavaScript.
    • doCheckUserid

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doCheckUserid(@QueryParameter String userid)
      Checks the userid against the blacklist of invalid users.
      Parameters:
      userid - the userid
      Returns:
      the validation results.
    • doCheckPassword

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doCheckPassword(org.kohsuke.stapler.StaplerRequest2 req, @QueryParameter String userid, @QueryParameter String password, @QueryParameter String apitoken, @QueryParameter boolean useApitoken)
      Checks the supplied password.
      Parameters:
      req - the request.
      userid - the user id.
      password - the password.
      Returns:
      the validation results
    • doCheckDontRestrictJobConfiguration

      public FormValidation doCheckDontRestrictJobConfiguration(@QueryParameter boolean dontRestrictJobConfiguration)
      Display warnings for dontRestrictJobConfiguration "Don't restrict job configuration" can cause security issues when used with inappropriate access controls, and display for a waning message for that.
      Parameters:
      dontRestrictJobConfiguration - whether not to restrict job configuration
      Returns:
      a warning message for dontRestrictJobConfiguration if it is true
      See Also:
    • isUseApitoken

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isUseApitoken()
      Checks if the current SecurityRealm supports username/password authentication.
      Returns:
      true if and only if the current realm supports username/password authentication.
    • isEnabledByDefault

      public boolean isEnabledByDefault()
      SpecificUsersAuthorizationStrategy should be disabled by default for JENKINS-28298
      Overrides:
      isEnabledByDefault in class AuthorizeProjectStrategyDescriptor
      Returns:
      false
      See Also: