org.jboss.security.acl
Class ACLEntryImpl

java.lang.Object
  extended by 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.
 
Method Summary
 boolean checkPermission(org.jboss.security.acl.ACLPermission permission)
           
 org.jboss.security.identity.Identity getIdentity()
           
 org.jboss.security.acl.ACLPermission getPermission()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.