Class SecureRequester.Default

java.lang.Object
jenkins.security.SecureRequester.Default
All Implemented Interfaces:
ExtensionPoint, SecureRequester
Enclosing interface:
SecureRequester

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Extension public static class SecureRequester.Default extends Object implements SecureRequester
  • Constructor Details

    • Default

      public Default()
  • Method Details

    • permit

      public boolean permit(org.kohsuke.stapler.StaplerRequest2 req, Object bean)
      Description copied from interface: SecureRequester
      Checks if a Jenkins object can be accessed by a given REST request. For instance, if the StaplerRequest2.getReferer() matches a given host, or anonymous read is allowed for the given object.
      Specified by:
      permit in interface SecureRequester
      Parameters:
      req - a request going through the REST API
      bean - an exported object of some kind
      Returns:
      true if this requester should be trusted, false to reject