public abstract class CallableWhitelist extends Object implements ExtensionPoint
Callables to execute on the master
even when those Callables do not have proper Role declarations from its
RoleSensitive.checkRoles(RoleChecker) method.ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
CallableWhitelist() |
| Modifier and Type | Method and Description |
|---|---|
static ExtensionList<CallableWhitelist> |
all() |
abstract boolean |
isWhitelisted(org.jenkinsci.remoting.RoleSensitive subject,
Collection<org.jenkinsci.remoting.Role> expected,
Object context)
Returns true if given
subject should be allowed to execute on the master even though
it came over channel from other JVMs. |
public abstract boolean isWhitelisted(org.jenkinsci.remoting.RoleSensitive subject,
Collection<org.jenkinsci.remoting.Role> expected,
Object context)
subject should be allowed to execute on the master even though
it came over channel from other JVMs.subject - See RoleChecker.check(RoleSensitive, Collection)expected - See RoleChecker.check(RoleSensitive, Collection)context - Parameter given to ChannelConfigurator.onChannelBuilding(ChannelBuilder, Object)CallableWhitelist is 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 CallableWhitelist is consulted,
and the execution will be rejected.public static ExtensionList<CallableWhitelist> all()
Copyright © 2019. All rights reserved.