Class ACLEntry
java.lang.Object
com.netscape.certsrv.acls.ACLEntry
- All Implemented Interfaces:
IACLEntry,Serializable
A class represents an ACI entry of an access control list.
- Version:
- $Revision$, $Date$
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPermission(IACL acl, String permission) Adds permission to this entry.booleancheckPermission(String permission) Checks if this entry has the given permission.booleancontainPermission(String permission) Checks to see if thisACLEntrycontains a particular permissionGets the ACL Entry StringRetrieves the expression associated with this entry.getType()Get the Type of the ACL entry.static ACLEntryparseACLEntry(IACL acl, String aclEntryString) Parse string in the following format:Returns a list of permissions associated with this entry.voidSets the ACL entry stringvoidsetAttributeExpressions(String expressions) Sets the expression associated with this entry.toString()Returns the string representation of this ACLEntry
-
Field Details
-
mPerms
-
expressions
-
type
-
aclEntryString
-
-
Constructor Details
-
ACLEntry
public ACLEntry()Class Constructor
-
-
Method Details
-
getType
-
setACLEntryString
Sets the ACL entry string- Parameters:
s- string in the following format:allow|deny (right[,right...]) attribute_expression
-
getACLEntryString
Gets the ACL Entry String- Specified by:
getACLEntryStringin interfaceIACLEntry- Returns:
- ACL Entry string in the following format:
allow|deny (right[,right...]) attribute_expression
-
addPermission
Adds permission to this entry. Permission must be one of the "rights" defined for each protected resource in its ACL- Parameters:
acl- the acl instance that this aclEntry is associated withpermission- one of the "rights" defined for each protected resource in its ACL
-
permissions
Returns a list of permissions associated with this entry.- Returns:
- a list of permissions for this ACL entry
-
setAttributeExpressions
Sets the expression associated with this entry.- Parameters:
expressions- the evaluator expressions. For example, group="Administrators"
-
getAttributeExpressions
Retrieves the expression associated with this entry.- Returns:
- the evaluator expressions. For example, group="Administrators"
-
containPermission
Checks to see if thisACLEntrycontains a particular permission- Parameters:
permission- one of the "rights" defined for each protected resource in its ACL- Returns:
- true if permission contained in the permission list
for this
ACLEntry; false otherwise.
-
checkPermission
Checks if this entry has the given permission.- Parameters:
permission- one of the "rights" defined for each protected resource in its ACL- Returns:
- true if the permission is allowed; false if the permission is denied. If a permission is not recognized by this ACL, it is considered denied
-
parseACLEntry
Parse string in the following format:allow|deny (right[,right...]) attribute_expression
into an instance of theACLEntryclass- Parameters:
acl- the acl instance associated with this aclentryaclEntryString- aclEntryString in the specified format- Returns:
- an instance of the
ACLEntryclass
-
toString
-