Class SecureRequester.Default

    • Constructor Detail

      • Default

        public Default()
    • Method Detail

      • permit

        public boolean permit​(org.kohsuke.stapler.StaplerRequest 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 StaplerRequest.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