Class SpecificUsersAuthorizationStrategy.DescriptorImpl

    • Constructor Detail

      • DescriptorImpl

        public DescriptorImpl()
    • Method Detail

      • 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.StaplerRequest 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.StaplerRequest 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:
        SpecificUsersAuthorizationStrategy.setDontRestrictJobConfiguration(boolean)
      • 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.