com.zeevbelkin.web.filter.access
Interface Yaaf.UrlAccessChecker

All Known Implementing Classes:
Yaaf.RegexAccessChecker
Enclosing class:
Yaaf

public static interface Yaaf.UrlAccessChecker

is an interface to a class that checks permissions of a user, roles of which can be obtained with Yaaf.RoleResolver to access a requested resource. Also the resolver check permissions of a none authenticated user to access a resource.
Initial version of Yaacfi has Yaaf.RegexAccessChecker class that implements this interface. Ability to set a custom access checker may be implemented in the future versions.


Nested Class Summary
static class Yaaf.UrlAccessChecker.Decision
          the checker decision
 
Method Summary
 Yaaf.UrlAccessChecker.Decision check(Yaaf.RoleResolver resolver, java.lang.String url)
          returns the checker decision that can be ALLOWED, FORBIDDEN or AUTHENTICATION_REQUIRED
 

Method Detail

check

Yaaf.UrlAccessChecker.Decision check(Yaaf.RoleResolver resolver,
                                     java.lang.String url)
returns the checker decision that can be ALLOWED, FORBIDDEN or AUTHENTICATION_REQUIRED

Parameters:
resolver - the resolver identifying the user, or null in case of an unauthenticated user
Returns:
the decision