org.entityfs.util.security
Interface AccessGranter

All Known Implementing Classes:
AndAccessGranter, IdentityAccessGranter, NotAccessGranter, OrAccessGranter, TrueAccessGranter, XorAccessGranter

public interface AccessGranter

This is the interface of an authorization class that can make decisions on whether a Subject is authorized for a particular Permission.

This is used by the AccessGranterAccessController.

Since:
1.0
Author:
Karl Gustafsson
In_jar:
entityfs-util

Method Summary
 boolean hasAccess(Subject s, Permission p)
          Is the subject authorized for the permission?
 

Method Detail

hasAccess

boolean hasAccess(Subject s,
                  Permission p)
Is the subject authorized for the permission?

Parameters:
s - The subject. Might be null.
p - The permission.
Returns:
true if the subject is authorized for the permission, false if not.