|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
AuthorizationProvider
Method Summary | |
void |
authorize(BlogUser blogUser,
java.util.Map authorizationContext,
java.lang.String username,
java.lang.String password)
Authorize a username and password for the given BlogUser |
void |
checkPermission(BlogUser blogUser,
java.util.Map permissionContext,
java.lang.String username,
java.lang.String permission)
Check a permission for the given BlogUser |
void |
init(javax.servlet.ServletConfig servletConfig,
BlojsomConfiguration blojsomConfiguration)
Initialization method for the authorization provider |
void |
loadAuthenticationCredentials(BlogUser blogUser)
Loads the authentication credentials for a given user |
Method Detail |
public void init(javax.servlet.ServletConfig servletConfig, BlojsomConfiguration blojsomConfiguration) throws BlojsomConfigurationException
servletConfig
- ServletConfig for obtaining any initialization parametersblojsomConfiguration
- BlojsomConfiguration
for blojsom-specific configuration information
BlojsomConfigurationException
- If there is an error initializing the providerpublic void loadAuthenticationCredentials(BlogUser blogUser) throws BlojsomException
blogUser
- BlogUser
BlojsomException
- If there is an error loading the user's authentication credentialspublic void authorize(BlogUser blogUser, java.util.Map authorizationContext, java.lang.String username, java.lang.String password) throws BlojsomException
BlogUser
blogUser
- BlogUser
authorizationContext
- Map
to be used to provide other information for authorization. This will
change depending on the authorization provider.username
- Usernamepassword
- Password
BlojsomException
- If there is an error authorizing the username and passwordpublic void checkPermission(BlogUser blogUser, java.util.Map permissionContext, java.lang.String username, java.lang.String permission) throws BlojsomException
BlogUser
blogUser
- BlogUser
permissionContext
- Map
to be used to provide other information for permission check. This will
change depending on the authorization provider.username
- Usernamepermission
- Permission
BlojsomException
- If there is an error checking the permission for the username and permission
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |