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
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jenkins.security.SecureRequester
permit
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
permit
Description copied from interface:SecureRequester
Checks if a Jenkins object can be accessed by a given REST request. For instance, if theStaplerRequest2.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
-