com.samskivert.servlet.user
Class UserManager.PasswordAuthenticator

java.lang.Object
  extended by com.samskivert.servlet.user.UserManager.PasswordAuthenticator
All Implemented Interfaces:
Authenticator
Enclosing class:
UserManager

public static class UserManager.PasswordAuthenticator
extends Object
implements Authenticator

An authenticator that requires that the user-supplied password match the actual user password.


Constructor Summary
UserManager.PasswordAuthenticator()
           
 
Method Summary
 void authenticateUser(User user, String username, Password password)
          Checks whether the user should be authenticated based on the supplied user record and the specified user information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserManager.PasswordAuthenticator

public UserManager.PasswordAuthenticator()
Method Detail

authenticateUser

public void authenticateUser(User user,
                             String username,
                             Password password)
                      throws AuthenticationFailedException
Description copied from interface: Authenticator
Checks whether the user should be authenticated based on the supplied user record and the specified user information. Throws an AuthenticationFailedException if the user fails to pass the authentication check for some reason.

Specified by:
authenticateUser in interface Authenticator
Parameters:
user - the definitive user record loaded from the persistent repository against which the user-supplied data is to be checked.
username - the username supplied by the user.
password - the plaintext password supplied by the user.
Throws:
AuthenticationFailedException - if the user failed to pass the authentication check.


Copyright © 2000-2008 Michael Bayne. All Rights Reserved.