|
Oracle Fusion Middleware Oracle WebLogic Server 10.3.1 API Reference 11g Release 1 (10.3.1) Part Number E13941-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.security.acl.AclEntryImpl
public final class 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)
principal
- Principal associated with an AclEntrypublic AclEntryImpl(Principal principal, Permission permission)
principal
- Principal associated with an AclEntrypermission
- Permission granted to the associated principalpublic AclEntryImpl(Principal principal, Permission[] permissions)
principal
- Principal associated with an AclEntrypermission
- Array of permission granted to the associated principalMethod Detail |
---|
public boolean setPrincipal(Principal principal)
setPrincipal
in interface AclEntry
principal
- Principal to be associated with an AclEntry
public void setNegativePermissions()
setNegativePermissions
in interface AclEntry
public boolean isNegative()
isNegative
in interface AclEntry
public boolean addPermission(Permission permission)
addPermission
in interface AclEntry
permission
- Permission associated with the principal in an AclEntry
public boolean removePermission(Permission permission)
removePermission
in interface AclEntry
permission
- Permission to be removed from this entry
public boolean checkPermission(Permission permission)
checkPermission
in interface AclEntry
permission
- Permission to be checked for
public Enumeration permissions()
permissions
in interface AclEntry
public String toString()
toString
in interface AclEntry
toString
in class Object
public Object clone()
clone
in interface AclEntry
clone
in class Object
public Principal getPrincipal()
getPrincipal
in interface AclEntry
|
Documentation is available at http://download.oracle.com/docs/cd/E12839_01/web.1111/wls.htm Copyright 1996, 2009, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server 10.3.1 API Reference 11g Release 1 (10.3.1) Part Number E13941-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |