|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netscape.certsrv.acls.ACL
public class ACL
A class represents an access control list (ACL). An ACL is associated with an protected resources. The policy enforcer can verify the ACLs with the current context to see if the corresponding resource is accessible.
An ACL
may contain one or more ACLEntry
.
However, in case of multiple ACLEntry
, a subject must
pass ALL of the ACLEntry
evaluation for permission
to be granted
Field Summary | |
---|---|
protected java.lang.String |
mDescription
|
protected java.util.Vector |
mEntries
|
protected java.lang.String |
mName
|
protected java.lang.String |
mResourceACLs
|
protected java.util.Vector |
mRights
|
Constructor Summary | |
---|---|
ACL()
Class constructor. |
|
ACL(java.lang.String name,
java.util.Vector rights,
java.lang.String resourceACLs)
Class constructor. |
Method Summary | |
---|---|
void |
addEntry(ACLEntry entry)
Adds an ACL entry to this list. |
void |
addRight(java.lang.String right)
Adds an rights entry to this list. |
boolean |
checkRight(java.lang.String permission)
Tells if the permission is one of the defined "rights" |
java.util.Enumeration |
entries()
Returns ACL entries. |
java.lang.String |
getDescription()
Retrieves the description of the resource governed by this access control. |
java.lang.String |
getName()
Retrieves the name of the resource governed by this access control. |
java.lang.String |
getResourceACLs()
Retrieves the exact string of the resourceACLs |
java.util.Enumeration |
rights()
Returns rights entries. |
void |
setDescription(java.lang.String description)
Sets the description of the resource governed by this access control. |
void |
setName(java.lang.String name)
Sets the name of the resource governed by this access control. |
java.lang.String |
toString()
Returns the string reprsentation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector mEntries
protected java.util.Vector mRights
protected java.lang.String mResourceACLs
protected java.lang.String mName
protected java.lang.String mDescription
Constructor Detail |
---|
public ACL()
public ACL(java.lang.String name, java.util.Vector rights, java.lang.String resourceACLs)
name
- resource namerights
- applicable rights defined for this resourceresourceACLs
- the entire ACL specification. For example:
"certServer.log.configuration:read,modify:
allow (read,modify)
group=\"Administrators\":
Allow administrators to read and modify log
configuration"Method Detail |
---|
public void setName(java.lang.String name)
name
- name of the resourcepublic java.lang.String getName()
getName
in interface IACL
public java.lang.String getResourceACLs()
public void setDescription(java.lang.String description)
description
- Description of the protected resourcepublic java.lang.String getDescription()
getDescription
in interface IACL
public void addEntry(ACLEntry entry)
entry
- the ACLEntry
to be added to this resourcepublic java.util.Enumeration entries()
entries
in interface IACL
ACLEntry
vectorpublic java.lang.String toString()
toString
in class java.lang.Object
public void addRight(java.lang.String right)
right
- The right to be added for this ACLpublic boolean checkRight(java.lang.String permission)
checkRight
in interface IACL
permission
- permission to be checked
public java.util.Enumeration rights()
rights
in interface IACL
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |