|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.security.ACL
hudson.security.SidACL
public abstract class SidACL
ACL
that checks permissions based on GrantedAuthority
of the Authentication
.
Field Summary |
---|
Fields inherited from class hudson.security.ACL |
---|
ANONYMOUS, AUTOMATIC_SIDS, EVERYONE, SYSTEM |
Constructor Summary | |
---|---|
SidACL()
|
Method Summary | |
---|---|
protected Boolean |
_hasPermission(org.acegisecurity.Authentication a,
Permission permission)
Implementation that backs up hasPermission(Authentication, Permission) . |
boolean |
hasPermission(org.acegisecurity.Authentication a,
Permission permission)
Checks if the given principle has the given permission. |
protected abstract Boolean |
hasPermission(org.acegisecurity.acls.sid.Sid p,
Permission permission)
Checks if the given Sid has the given Permission . |
SidACL |
newInheritingACL(SidACL parent)
Creates a new SidACL that first consults 'this' SidACL and then delegate to
the given parent SidACL . |
protected String |
toString(org.acegisecurity.acls.sid.Sid p)
|
Methods inherited from class hudson.security.ACL |
---|
checkPermission, hasPermission, impersonate, impersonate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SidACL()
Method Detail |
---|
public boolean hasPermission(org.acegisecurity.Authentication a, Permission permission)
ACL
Note that ACL.SYSTEM
can be passed in as the authentication parameter,
in which case you should probably just assume it has every permission.
hasPermission
in class ACL
protected Boolean _hasPermission(org.acegisecurity.Authentication a, Permission permission)
hasPermission(Authentication, Permission)
.
hasPermission(Sid, Permission)
returns it.
Otherwise null, indicating that this ACL doesn't have any entry for it.protected abstract Boolean hasPermission(org.acegisecurity.acls.sid.Sid p, Permission permission)
Sid
has the given Permission
.
hasPermission(Authentication, Permission)
is implemented
by checking authentication's GrantedAuthority
by using
this method.
It is the implementor's responsibility to recognize Permission.impliedBy
and take that into account.
protected String toString(org.acegisecurity.acls.sid.Sid p)
public final SidACL newInheritingACL(SidACL parent)
SidACL
that first consults 'this' SidACL
and then delegate to
the given parent SidACL
. By doing this at the SidACL
level and not at the
ACL
level, this allows the child ACLs to have an explicit deny entry.
Note that the combined ACL calls hasPermission(Sid,Permission) in the child and parent
SidACLs directly, so if these override _hasPermission then this custom behavior will
not be applied.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |