@Extension(ordinal=100.0) public static class CallableDirectionChecker.DefaultWhitelist extends CallableWhitelist
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
DefaultWhitelist() |
Modifier and Type | Method and Description |
---|---|
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. |
all
public boolean isWhitelisted(org.jenkinsci.remoting.RoleSensitive subject, Collection<org.jenkinsci.remoting.Role> expected, Object context)
CallableWhitelist
subject
should be allowed to execute on the master even though
it came over channel from other JVMs.isWhitelisted
in class CallableWhitelist
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 CallableWhitelist
s will be given a chance to
accept/reject this subject, and if no one accepts it, the subject will be rejected.Copyright © 2016. All rights reserved.