com.j_spaces.core.filters
Interface ISpaceUserAccountDriver


public interface ISpaceUserAccountDriver

A read-only facade for an underlying security ISpaceUserAccountDriver used to authenticate individual users, and identify the security roles associated with those users.


Method Summary
 GenericPrincipal authenticate(String username, String password)
          Return the Principal associated with the specified username and credentials, if there is one; if username unknown or password is wrong SecurityException will be thrown.
 void init(String url, String containerName)
          Initialize the driver according to the url and container name.
 

Method Detail

init

void init(String url,
          String containerName)
          throws Exception
Initialize the driver according to the url and container name.

Parameters:
url - tokenized url
containerName - container name
Throws:
Exception

authenticate

GenericPrincipal authenticate(String username,
                              String password)
Return the Principal associated with the specified username and credentials, if there is one; if username unknown or password is wrong SecurityException will be thrown.

Parameters:
username - Username of the Principal to look up
password - Password or other credentials to use in authenticating this username.
Returns:
principal associated with the specified username