|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.authorization.PropertiesAuthorizationProvider
PropertiesAuthorizationProvider
Field Summary | |
protected java.lang.String |
_baseConfigurationDirectory
|
protected javax.servlet.ServletConfig |
_servletConfig
|
Constructor Summary | |
PropertiesAuthorizationProvider()
Default constructor |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected javax.servlet.ServletConfig _servletConfig
protected java.lang.String _baseConfigurationDirectory
Constructor Detail |
public PropertiesAuthorizationProvider()
Method Detail |
public void init(javax.servlet.ServletConfig servletConfig, BlojsomConfiguration blojsomConfiguration) throws BlojsomConfigurationException
init
in interface AuthorizationProvider
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
loadAuthenticationCredentials
in interface AuthorizationProvider
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
authorize
in interface AuthorizationProvider
blogUser
- BlogUser
authorizationContext
- Map
to be used to provide other information for authorization. This will
change depending on the authorization provider. This parameter is not used in this implementation.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
checkPermission
in interface AuthorizationProvider
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 |