| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.security.AccessControlEntry
public class AccessControlEntry
An immutable object that defines a set of access rights granted to a given persona.
java.security.acl.AclEntry compatibility notes:
Persona, 
AccessRight, 
Serialized Form| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSION | 
| static int | DENYIndicates that the rights in this ACE should be specifically denied. | 
| static int | GRANTIndicates that the right that is to be granted. | 
| static AccessControlEntry[] | NO_ACESAn empty array of access control entries. | 
| Constructor Summary | |
|---|---|
| AccessControlEntry(Persona pPersona)Creates an access control entry object, with no access rights, for the specified persona. | |
| AccessControlEntry(Persona pPersona,
                   AccessRight pRight)Creates an access control entry object with the specified access right for the specified persona. | |
| AccessControlEntry(Persona pPersona,
                   AccessRight[] pRights)Creates an access control entry object, with the specified access rights, for the specified persona. | |
| AccessControlEntry(Persona pPersona,
                   AccessRight[] pRights,
                   boolean pNegative)Creates an access control entry object, with the specified access rights and negativity, for the specified persona. | |
| AccessControlEntry(Persona pPersona,
                   AccessRight[] pRights,
                   int pType)Creates an access control entry object, with the specified access rights and associated flags, for the specified persona. | |
| AccessControlEntry(Persona pPersona,
                   AccessRight pRight,
                   boolean pNegative)Creates an access control entry object with the specified access right and negativity for the specified persona. | |
| AccessControlEntry(Persona pPersona,
                   AccessRight pRight,
                   int pType)Creates an access control entry object with the specified access right and flags for the specified persona. | |
| Method Summary | |
|---|---|
|  boolean | addPermission(java.security.acl.Permission pPermission) | 
|  boolean | checkPermission(java.security.acl.Permission pPermission) | 
|  java.lang.Object | clone() | 
|  boolean | equals(java.lang.Object pObject) | 
|  AccessRight[] | getAccessRights()Returns the set of access rights granted this role. | 
|  Persona | getPersona()Returns the Persona granted this set of access rights. | 
|  java.security.Principal | getPrincipal() | 
|  int | getType()Returns the type of ACE. | 
|  boolean | hasAccessRight(AccessRight pRight)Returns true if the indicated access right is one of those in this access control entry object. | 
|  boolean | hasAccessRight(User pUser,
               AccessRight pRight)Returns true if the access control entry object has the specified access right for the specified role. | 
|  boolean | hasAccessRight(User pUser,
               AccessRight pRight,
               int pType)Returns true if the access control entry object has the specified access right for the specified role if this ACE is the same type as specified. | 
|  boolean | hasAccessRights(AccessRight[] pRights)Returns true if the indicated access rights are included in those of this access control entry object. | 
|  boolean | isNegative() | 
| static void | main(java.lang.String[] args) | 
| static AccessControlEntry[] | parse(java.lang.String pRightsString,
      SecurityContext pContext)Parses a list of access control entry elements into a string. | 
| static AccessControlEntry[] | parse(java.lang.String pRightsString,
      SecurityContext pContext,
      boolean pBestEffort)Parses a list of access control entry elements into a string. | 
|  java.util.Enumeration | permissions() | 
|  boolean | removePermission(java.security.acl.Permission pPermission) | 
|  void | setNegativePermissions() | 
|  boolean | setPrincipal(java.security.Principal pPrincipal) | 
|  java.lang.String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static java.lang.String CLASS_VERSION
public static final AccessControlEntry[] NO_ACES
public static final int GRANT
public static final int DENY
| Constructor Detail | 
|---|
public AccessControlEntry(Persona pPersona)
public AccessControlEntry(Persona pPersona,
                          AccessRight pRight)
public AccessControlEntry(Persona pPersona,
                          AccessRight pRight,
                          int pType)
public AccessControlEntry(Persona pPersona,
                          AccessRight pRight,
                          boolean pNegative)
public AccessControlEntry(Persona pPersona,
                          AccessRight[] pRights)
public AccessControlEntry(Persona pPersona,
                          AccessRight[] pRights,
                          int pType)
public AccessControlEntry(Persona pPersona,
                          AccessRight[] pRights,
                          boolean pNegative)
| Method Detail | 
|---|
public Persona getPersona()
public AccessRight[] getAccessRights()
public int getType()
public boolean hasAccessRight(AccessRight pRight)
AccessRightpublic boolean hasAccessRights(AccessRight[] pRights)
pRights - a list of access rights
AccessRight
public boolean hasAccessRight(User pUser,
                              AccessRight pRight)
public boolean hasAccessRight(User pUser,
                              AccessRight pRight,
                              int pType)
public static AccessControlEntry[] parse(java.lang.String pRightsString,
                                         SecurityContext pContext)
                                  throws SecurityException
SecurityException - if there is an error parsing the
                           list.  Usually this is an
                           InvalidAccessRightException.
public static AccessControlEntry[] parse(java.lang.String pRightsString,
                                         SecurityContext pContext,
                                         boolean pBestEffort)
                                  throws SecurityException
SecurityException - if there is an error parsing the
                           list.  Usually this is an
                           InvalidAccessRightException unless
                           pBestEffort is true.public boolean equals(java.lang.Object pObject)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in interface java.security.acl.AclEntrytoString in class java.lang.Objectpublic boolean addPermission(java.security.acl.Permission pPermission)
addPermission in interface java.security.acl.AclEntrypublic boolean checkPermission(java.security.acl.Permission pPermission)
checkPermission in interface java.security.acl.AclEntrypublic java.lang.Object clone()
clone in interface java.security.acl.AclEntryclone in class java.lang.Objectpublic java.security.Principal getPrincipal()
getPrincipal in interface java.security.acl.AclEntrypublic boolean isNegative()
isNegative in interface java.security.acl.AclEntrypublic java.util.Enumeration permissions()
permissions in interface java.security.acl.AclEntrypublic boolean removePermission(java.security.acl.Permission pPermission)
removePermission in interface java.security.acl.AclEntrypublic void setNegativePermissions()
setNegativePermissions in interface java.security.acl.AclEntrypublic boolean setPrincipal(java.security.Principal pPrincipal)
setPrincipal in interface java.security.acl.AclEntrypublic static void main(java.lang.String[] args)
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||