|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.security.acl.AclEntryImpl
This class implements the AclEntry interface, which is used to represent one entry in an Access Control List (ACL).
An ACL is a data structure with multiple AclEntry objects. Each AclEntry object contains a set of permissions associated with a particular principal, which represents an entity such as an individual user or a group.
Additionally, each AclEntry is specified as either positive or negative. If positive, the permissions are to be granted to the associated principal. If negative, the permissions are to be denied. Each principal can have at most one positive AclEntry and one negative entry; that is, multiple positive or negative AclEntries are not allowed for any principal.
An AclEntry is by default positive. An entry becomes a negative entry only if the setNegativePermissions() method is called on it.
Acl
,
AclImpl
Constructor Summary | |
AclEntryImpl(java.security.Principal principal)
Constructs an entry for the specified Principal. |
|
AclEntryImpl(java.security.Principal principal,
java.security.acl.Permission permission)
Constructs an entry for the specified Principal with the specified permission. |
|
AclEntryImpl(java.security.Principal principal,
java.security.acl.Permission[] permissions)
Constructs an entry for the specified Principal with the specified set of permission. |
Method Summary | |
boolean |
addPermission(java.security.acl.Permission permission)
Adds the specified permission to this ACL entry. |
boolean |
checkPermission(java.security.acl.Permission permission)
Determines whether the specified permission is part of the permission set in an AclEntry. |
java.lang.Object |
clone()
Clones an AclEntry. |
java.security.Principal |
getPrincipal()
Returns the principal for which permissions are granted or denied by an AclEntry, or null if there is no principal set. |
boolean |
isNegative()
Determines whether this is a negative AclEntry, that is, one that denies the associated principal the set of permissions in the entry. |
java.util.Enumeration |
permissions()
Returns an enumeration of the permissions in this AclEntry. |
boolean |
removePermission(java.security.acl.Permission permission)
Removes the specified permission from this ACL entry. |
void |
setNegativePermissions()
Sets an AclEntry to be a negative one; that is, denies a principal the permission set specified in an AclEntry. |
boolean |
setPrincipal(java.security.Principal principal)
Sets the principal for which permissions are granted or denied by an ACL entry. |
java.lang.String |
toString()
Returns a string representation of the contents of an AclEntry. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public AclEntryImpl(java.security.Principal principal)
principal
- Principal associated with an AclEntrypublic AclEntryImpl(java.security.Principal principal, java.security.acl.Permission permission)
principal
- Principal associated with an AclEntrypermission
- Permission granted to the associated principalpublic AclEntryImpl(java.security.Principal principal, java.security.acl.Permission[] permissions)
principal
- Principal associated with an AclEntrypermission
- Array of permission granted to the associated principalMethod Detail |
public boolean setPrincipal(java.security.Principal principal)
Principal
- to be associated with an AclEntrypublic void setNegativePermissions()
public boolean isNegative()
public boolean addPermission(java.security.acl.Permission permission)
permission
- Permission associated with the principal in an AclEntrypublic boolean removePermission(java.security.acl.Permission permission)
permission
- Permission to be removed from this entrypublic boolean checkPermission(java.security.acl.Permission permission)
permission
- Permission to be checked forpublic java.util.Enumeration permissions()
public java.lang.String toString()
public java.lang.Object clone()
public java.security.Principal getPrincipal()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |