JBoss Security SPI - Aggregator 2.0.4.SP8

org.jboss.security.acl
Interface ACLEntry


public interface ACLEntry

This interface represents an entry in the Access Control List.

Author:
Stefan Guilhen

Method Summary
 boolean checkPermission(ACLPermission permission)
           Checks if the specified permission is part of the this entry's permission.
 Identity getIdentity()
           Obtains the Identity for which a permission has been assigned in this entry.
 String getIdentityOrRole()
           Obtains the identity or role for which a permission has been assigned in this entry.
 ACLPermission getPermission()
           Obtains the Permission object held by this entry.
 

Method Detail

getIdentityOrRole

String getIdentityOrRole()

Obtains the identity or role for which a permission has been assigned in this entry.

Returns:
a String representing the identity or role name.

getIdentity

Identity getIdentity()

Obtains the Identity for which a permission has been assigned in this entry.

Returns:
a reference to the Identity contained in this entry.

getPermission

ACLPermission getPermission()

Obtains the Permission object held by this entry.

Returns:
a reference to the Permission contained in this entry.

checkPermission

boolean checkPermission(ACLPermission permission)

Checks if the specified permission is part of the this entry's permission.

Parameters:
permission - the ACLPermission to be checked for.
Returns:
true if the permission is part of this entry's permission; false otherwise.

JBoss Security SPI - Aggregator 2.0.4.SP8

Copyright © 2012 JBoss Inc.. All Rights Reserved.