org.jboss.security.acl
Class ACLEntryImpl
java.lang.Object
org.jboss.security.acl.ACLEntryImpl
- All Implemented Interfaces:
- org.jboss.security.acl.ACLEntry
public class ACLEntryImpl
- extends Object
- implements org.jboss.security.acl.ACLEntry
This class represents an entry in the Access Control List (ACL), and associates a permission
to an identity. This implementation only stores permissions of type BitMaskPermission,
and can also only check permissions of that type.
- Author:
- Stefan Guilhen
|
Constructor Summary |
ACLEntryImpl(BitMaskPermission permission,
org.jboss.security.identity.Identity identity)
Builds an instance of ACLEntry with the specified permission and identity. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACLEntryImpl
public ACLEntryImpl(BitMaskPermission permission,
org.jboss.security.identity.Identity identity)
Builds an instance of ACLEntry with the specified permission and identity.
- Parameters:
permission - the ACLPermission granted to the associated identity.identity - the Identity for which the permission is being granted.
getIdentity
public org.jboss.security.identity.Identity getIdentity()
- Specified by:
getIdentity in interface org.jboss.security.acl.ACLEntry
getPermission
public org.jboss.security.acl.ACLPermission getPermission()
- Specified by:
getPermission in interface org.jboss.security.acl.ACLEntry
checkPermission
public boolean checkPermission(org.jboss.security.acl.ACLPermission permission)
- Specified by:
checkPermission in interface org.jboss.security.acl.ACLEntry
Copyright © 2008 JBoss Inc.. All Rights Reserved.