|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.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(Principal principal)
Deprecated. Constructs an entry for the specified Principal. |
|
AclEntryImpl(Principal principal,
Permission permission)
Deprecated. Constructs an entry for the specified Principal with the specified permission. |
|
AclEntryImpl(Principal principal,
Permission[] permissions)
Deprecated. Constructs an entry for the specified Principal with the specified set of permission. |
Method Summary | |
boolean |
addPermission(Permission permission)
Deprecated. Adds the specified permission to this ACL entry. |
boolean |
checkPermission(Permission permission)
Deprecated. Determines whether the specified permission is part of the permission set in an AclEntry. |
Object |
clone()
Deprecated. Clones an AclEntry. |
Principal |
getPrincipal()
Deprecated. Returns the principal for which permissions are granted or denied by an AclEntry, or null if there is no principal set. |
boolean |
isNegative()
Deprecated. Determines whether this is a negative AclEntry, that is, one that denies the associated principal the set of permissions in the entry. |
Enumeration |
permissions()
Deprecated. Returns an enumeration of the permissions in this AclEntry. |
boolean |
removePermission(Permission permission)
Deprecated. Removes the specified permission from this ACL entry. |
void |
setNegativePermissions()
Deprecated. Sets an AclEntry to be a negative one; that is, denies a principal the permission set specified in an AclEntry. |
boolean |
setPrincipal(Principal principal)
Deprecated. Sets the principal for which permissions are granted or denied by an ACL entry. |
String |
toString()
Deprecated. 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(Principal principal)
public AclEntryImpl(Principal principal, Permission permission)
public AclEntryImpl(Principal principal, Permission[] permissions)
Method Detail |
public boolean addPermission(Permission permission)
addPermission
in interface AclEntry
permission
- Permission associated with the principal in an AclEntry
public boolean checkPermission(Permission permission)
checkPermission
in interface AclEntry
permission
- Permission to be checked for
public Object clone()
clone
in interface AclEntry
public Principal getPrincipal()
getPrincipal
in interface AclEntry
public boolean isNegative()
isNegative
in interface AclEntry
public Enumeration permissions()
permissions
in interface AclEntry
public boolean removePermission(Permission permission)
removePermission
in interface AclEntry
permission
- Permission to be removed from this entry
public void setNegativePermissions()
setNegativePermissions
in interface AclEntry
public boolean setPrincipal(Principal principal)
setPrincipal
in interface AclEntry
principal
- Principal to be associated with an AclEntry
public String toString()
toString
in interface AclEntry
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs90 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |