@Extension public class AdminWhitelistRule extends Object implements org.kohsuke.stapler.StaplerProxy
RoleSensitive
objects and FilePath
s.Modifier and Type | Field and Description |
---|---|
jenkins.security.s2m.FilePathRuleConfig |
filePathRules
FilePath access pattern rules specified by the admin
|
CallableRejectionConfig |
rejected
Ones that we rejected but want to run by admins.
|
jenkins.security.s2m.CallableWhitelistConfig |
whitelisted
Callables that admins have whitelisted explicitly.
|
Constructor and Description |
---|
AdminWhitelistRule() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkFileAccess(String op,
File f) |
org.kohsuke.stapler.HttpResponse |
doApprove(String value)
Approves specific callables by their names.
|
org.kohsuke.stapler.HttpResponse |
doApproveAll()
Approves all the currently rejected subjects
|
org.kohsuke.stapler.HttpResponse |
doSubmit(org.kohsuke.stapler.StaplerRequest req) |
boolean |
getMasterKillSwitch() |
Object |
getTarget()
Restricts the access to administrator.
|
boolean |
isWhitelisted(org.jenkinsci.remoting.RoleSensitive subject,
Collection<org.jenkinsci.remoting.Role> expected,
Object context) |
void |
setMasterKillSwitch(boolean state) |
public final CallableRejectionConfig rejected
public final jenkins.security.s2m.CallableWhitelistConfig whitelisted
public final jenkins.security.s2m.FilePathRuleConfig filePathRules
public AdminWhitelistRule() throws IOException, InterruptedException
IOException
InterruptedException
public boolean isWhitelisted(org.jenkinsci.remoting.RoleSensitive subject, Collection<org.jenkinsci.remoting.Role> expected, Object context)
public org.kohsuke.stapler.HttpResponse doSubmit(org.kohsuke.stapler.StaplerRequest req) throws IOException
IOException
public org.kohsuke.stapler.HttpResponse doApproveAll() throws IOException
IOException
public org.kohsuke.stapler.HttpResponse doApprove(@QueryParameter String value) throws IOException
IOException
public boolean getMasterKillSwitch()
public void setMasterKillSwitch(boolean state)
public Object getTarget()
getTarget
in interface org.kohsuke.stapler.StaplerProxy
Copyright © 2004–2021. All rights reserved.