|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netscape.certsrv.acls.ACLEntry
public class ACLEntry
A class represents an ACI entry of an access control list.
Field Summary | |
---|---|
protected java.lang.String |
mACLEntryString
|
protected java.lang.String |
mExpressions
|
protected boolean |
mNegative
|
protected java.util.Hashtable |
mPerms
|
Constructor Summary | |
---|---|
ACLEntry()
Class Constructor |
Method Summary | |
---|---|
void |
addPermission(IACL acl,
java.lang.String permission)
Adds permission to this entry. |
boolean |
checkPermission(java.lang.String permission)
Checks if this entry has the given permission. |
boolean |
containPermission(java.lang.String permission)
Checks to see if this ACLEntry contains a
particular permission |
java.lang.String |
getACLEntryString()
Gets the ACL Entry String |
java.lang.String |
getAttributeExpressions()
Retrieves the expression associated with this entry. |
boolean |
isNegative()
Checks if this ACL entry is set to negative. |
static ACLEntry |
parseACLEntry(IACL acl,
java.lang.String aclEntryString)
Parse string in the following format: |
java.util.Enumeration |
permissions()
Returns a list of permissions associated with this entry. |
void |
setACLEntryString(java.lang.String s)
Sets the ACL entry string |
void |
setAttributeExpressions(java.lang.String expressions)
Sets the expression associated with this entry. |
void |
setNegative()
Sets this ACL entry negative. |
java.lang.String |
toString()
Returns the string representation of this ACLEntry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Hashtable mPerms
protected java.lang.String mExpressions
protected boolean mNegative
protected java.lang.String mACLEntryString
Constructor Detail |
---|
public ACLEntry()
Method Detail |
---|
public boolean isNegative()
public void setNegative()
public void setACLEntryString(java.lang.String s)
s
- string in the following format:
allow|deny (right[,right...]) attribute_expression
public java.lang.String getACLEntryString()
getACLEntryString
in interface IACLEntry
allow|deny (right[,right...]) attribute_expression
public void addPermission(IACL acl, java.lang.String permission)
acl
- the acl instance that this aclEntry is associated withpermission
- one of the "rights" defined for each
protected resource in its ACLpublic java.util.Enumeration permissions()
public void setAttributeExpressions(java.lang.String expressions)
expressions
- the evaluator expressions. For example,
group="Administrators"public java.lang.String getAttributeExpressions()
public boolean containPermission(java.lang.String permission)
ACLEntry
contains a
particular permission
permission
- one of the "rights" defined for each
protected resource in its ACL
ACLEntry
; false otherwise.public boolean checkPermission(java.lang.String permission)
permission
- one of the "rights" defined for each
protected resource in its ACL
public static ACLEntry parseACLEntry(IACL acl, java.lang.String aclEntryString)
allow|deny (right[,right...]) attribute_expressioninto an instance of the
ACLEntry
class
acl
- the acl instance associated with this aclentryaclEntryString
- aclEntryString in the specified format
ACLEntry
classpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |