org.weborganic.bastille.security
Class LoggedInAuthorizer

java.lang.Object
  extended by org.weborganic.bastille.security.LoggedInAuthorizer
All Implemented Interfaces:
Authorizer

public final class LoggedInAuthorizer
extends Object
implements Authorizer

An authorizer which only requires the user to be logged in.

Since:
0.6.2

Method Summary
static LoggedInAuthorizer getInstance()
           
 AuthorizationResult isUserAuthorized(User user, String uri)
          Always returns AUTHORIZED if the specified user is not null.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isUserAuthorized

public AuthorizationResult isUserAuthorized(User user,
                                            String uri)
Always returns AUTHORIZED if the specified user is not null.

Specified by:
isUserAuthorized in interface Authorizer
Parameters:
user - A user.
uri - The URI the user is trying to access.
Returns:
AUTHORIZED is the user is not null; UNAUTHORIZED otherwise.

getInstance

public static LoggedInAuthorizer getInstance()
Returns:
a singleton instance.