| org.blojsom.authorization.AuthorizationProvider
All known Subclasses: org.blojsom.authorization.database.DatabaseAuthorizationProvider,
AuthorizationProvider | public interface AuthorizationProvider (Code) | | AuthorizationProvider
author: David Czarnecki version: $Id: AuthorizationProvider.java,v 1.5 2007/01/17 02:35:16 czarneckid Exp $ since: blojsom 3.0 |
Method Summary | |
public void | authorize(Blog blog, Map authorizationContext, String userLogin, String password) Authorize a username and password for the given
Blog Parameters: blog - Blog Parameters: authorizationContext - Map to be used to provide other information for authorization. | public void | checkPermission(Blog blog, Map permissionContext, String userLogin, String permission) Check a permission for the given
Blog Parameters: blog - Blog Parameters: permissionContext - Map to be used to provide other information for permission check. | public void | init() |
authorize | public void authorize(Blog blog, Map authorizationContext, String userLogin, String password) throws AuthorizationException(Code) | | Authorize a username and password for the given
Blog Parameters: blog - Blog Parameters: authorizationContext - Map to be used to provide other information for authorization. This willchange depending on the authorization provider. Parameters: userLogin - Username Parameters: password - Password throws: AuthorizationException - If there is an error authorizing the username and password |
checkPermission | public void checkPermission(Blog blog, Map permissionContext, String userLogin, String permission) throws AuthorizationException(Code) | | Check a permission for the given
Blog Parameters: blog - Blog Parameters: permissionContext - Map to be used to provide other information for permission check. This willchange depending on the authorization provider. Parameters: userLogin - Username Parameters: permission - Permission throws: AuthorizationException - If there is an error checking the permission for the username and permission |
|
|