|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An interface for a component that maps user security credentials to database user names and passwords. The component can perform mappings for one or more databases.
| Method Summary | |
Role |
map(java.lang.String credentials,
java.lang.String database)
Maps the given credentials and database onto a role which can be used to access the database. |
void |
setConfiguration(java.lang.String configuration)
Configures the role mapper. |
| Method Detail |
public void setConfiguration(java.lang.String configuration)
throws RoleMapConfigurationException
map method.
configuration - Configuration information.
RoleMapConfigurationException - if any error occurs when
processing the configuration.
public Role map(java.lang.String credentials,
java.lang.String database)
throws RoleMapAuthorizationException,
RoleMapCannotAuthorizeException
credentials - User credentials.database - URI of database to get role for.
RoleMapAuthorizationException - if the user is not
authorized to access the database.
RoleMapCannotAuthorizeException - if a problem arises
during the authorization.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||