Package jenkins.security
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.security.SecureRequester
SecureRequester.Default
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
permit(org.kohsuke.stapler.StaplerRequest req, Object bean)
Checks if a Jenkins object can be accessed by a given REST request.
-
-
-
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 theStaplerRequest.getReferer()
matches a given host, or anonymous read is allowed for the given object.- Specified by:
permit
in interfaceSecureRequester
- Parameters:
req
- a request going through the REST APIbean
- an exported object of some kind- Returns:
- true if this requester should be trusted, false to reject
-
-