public class SystemAuthorizationStrategy extends AuthorizeProjectStrategy
ACL.SYSTEM. Using this strategy becomes important when
GlobalQueueItemAuthenticator
is forcing jobs to a user other than ACL.SYSTEM.| Modifier and Type | Class and Description |
|---|---|
static class |
SystemAuthorizationStrategy.DescriptorImpl
Our descriptor
|
| Constructor and Description |
|---|
SystemAuthorizationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
org.acegisecurity.Authentication |
authenticate(hudson.model.Job<?,?> job,
hudson.model.Queue.Item item)
Returns the
Authentication for the build. |
boolean |
equals(Object obj)
For now we are an object with no configurable fields, so strict instanceof establishes equality.
|
protected static SystemAuthorizationStrategy |
getCurrentStrategy(hudson.model.Job<?,?> job)
Return
SystemAuthorizationStrategy configured in a job. |
int |
hashCode()
For now we are an object with no configurable fields, so return a fixed value.
|
all, authenticate@DataBoundConstructor public SystemAuthorizationStrategy()
public org.acegisecurity.Authentication authenticate(hudson.model.Job<?,?> job,
hudson.model.Queue.Item item)
Authentication for the build.authenticate in class AuthorizeProjectStrategyjob - the project to run.item - the item in queue, which will be a build.protected static SystemAuthorizationStrategy getCurrentStrategy(hudson.model.Job<?,?> job)
SystemAuthorizationStrategy configured in a job.job - the JobSystemAuthorizationStrategy or nullpublic final int hashCode()
public final boolean equals(Object obj)
equals in class Objectobj - the object to test equality with.true if and only if this is a equivalent SystemAuthorizationStrategy instance.Copyright © 2004-2016. All Rights Reserved.