@Extension(ordinal=-100.0) public class AdminCallableWhitelist extends CallableWhitelist
Callables that are approved by the admins.
Smaller ordinal value allows other programmable CallableWhitelist to accept/reject
Callables without bothering the admins. This impl should be used only for those
Callables that our program does not have any idea for.
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
AdminCallableWhitelist() |
| 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. |
allpublic boolean isWhitelisted(org.jenkinsci.remoting.RoleSensitive subject,
Collection<org.jenkinsci.remoting.Role> expected,
Object context)
CallableWhitelistsubject should be allowed to execute on the master even though
it came over channel from other JVMs.isWhitelisted in class CallableWhitelistsubject - 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.Copyright © 2019. All rights reserved.