public abstract class CallableWhitelist extends Object implements ExtensionPoint
Callables to execute on the master even when those
Callables do not have proper
Roledeclarations from its
|Constructor and Description|
|Modifier and Type||Method and Description|
Returns true if given
public abstract boolean isWhitelisted(org.jenkinsci.remoting.RoleSensitive subject, Collection<org.jenkinsci.remoting.Role> expected, Object context)
subjectshould be allowed to execute on the master even though it came over channel from other JVMs.
context- Parameter given to
CallableWhitelistis consulted when this method returns true. false to "-0" this subject. Other
CallableWhitelists will be given a chance to accept/reject this subject, and if no one accepts it, the subject will be rejected.
SecurityException- to blacklist a subject, throw this exception. No further
CallableWhitelistis consulted, and the execution will be rejected.
Copyright © 2004–2019. All rights reserved.