Knopflerfish OSGi 3.0.0

org.knopflerfish.service.um.useradmin
Interface PasswdAuthenticator


public interface PasswdAuthenticator

Service for user name/password authentication.

Version:
$Revision: 1.1.1.1 $
Author:
Gatespace AB

Method Summary
 boolean canAuthenticate(java.lang.String username)
          Tests if it is possible to authenticate the user with the specified username with this authentication method (that there is a user with the specified user name and that the user has a password credential.
 PasswdSession createSession()
          Creates an authentication session.
 

Method Detail

canAuthenticate

boolean canAuthenticate(java.lang.String username)
Tests if it is possible to authenticate the user with the specified username with this authentication method (that there is a user with the specified user name and that the user has a password credential.

Parameters:
username - the username
Returns:
true if this authentication method can be used to authenticate the user, false otherwise.

createSession

PasswdSession createSession()
Creates an authentication session.

Returns:
a session.

Knopflerfish OSGi 3.0.0