uk.org.ogsadai.common.rolemap
Class SimpleFileWithEncryptedPasswordsRoleMapper

java.lang.Object
  |
  +--uk.org.ogsadai.common.rolemap.SimpleFileWithEncryptedPasswordsRoleMapper
All Implemented Interfaces:
RoleMapper

public class SimpleFileWithEncryptedPasswordsRoleMapper
extends java.lang.Object
implements RoleMapper


Constructor Summary
SimpleFileWithEncryptedPasswordsRoleMapper()
           
 
Method Summary
 Role map(java.lang.String credentials, java.lang.String database)
          Extract the relevant role object, and decrypt the password contained therein.
 void setConfiguration(java.lang.String configuration)
          Method setConfiguration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFileWithEncryptedPasswordsRoleMapper

public SimpleFileWithEncryptedPasswordsRoleMapper()
Method Detail

setConfiguration

public void setConfiguration(java.lang.String configuration)
                      throws CommonSystemException,
                             CommonUserException
Description copied from interface: RoleMapper
Method setConfiguration. MUST be called before any calls to map

Specified by:
setConfiguration in interface RoleMapper
Parameters:
configuration - - from a dataResourceConfig document.
Throws:
CommonSystemException
CommonUserException
See Also:
RoleMapper.setConfiguration(String)

map

public Role map(java.lang.String credentials,
                java.lang.String database)
         throws CommonSystemException,
                CommonUserException,
                AuthorisationException
Extract the relevant role object, and decrypt the password contained therein.

Specified by:
map in interface RoleMapper
CommonSystemException
CommonUserException
AuthorisationException
See Also:
RoleMapper.map(String, String)