org.weborganic.bastille.security
Class LoggedInAuthorizer
java.lang.Object
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
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.