SPT Core API

com.sptci.auth.digest
Class DatabaseAuthenticator

java.lang.Object
  extended by com.sptci.auth.digest.Authenticator
      extended by com.sptci.auth.digest.DatabaseAuthenticator
All Implemented Interfaces:
com.withay.http.PasswordRetriever

public class DatabaseAuthenticator
extends Authenticator

A PasswordRetriever implementation that performs authentication against a database.

Copyright 2006, Sans Pareil Technologies, Inc.

Version:
$Id: DatabaseAuthenticator.java 4553 2008-12-24 10:34:16Z rakesh $
Author:
Rakesh Vidyadharan 2006-11-15

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sptci.auth.digest.Authenticator
Authenticator.ManagerTask
 
Field Summary
 
Fields inherited from class com.sptci.auth.digest.Authenticator
logger, user, userMap, userName
 
Constructor Summary
DatabaseAuthenticator()
           
 
Method Summary
protected  User fetchUser()
          Fetch the user object from the database and populate the fields of Authenticator.user.
 
Methods inherited from class com.sptci.auth.digest.Authenticator
getPassword, getUser, getUserName, setUser, setUserName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseAuthenticator

public DatabaseAuthenticator()
Method Detail

fetchUser

protected User fetchUser()
                  throws com.withay.http.PasswordRetrievalException
Fetch the user object from the database and populate the fields of Authenticator.user. Adds a new entry into Authenticator.userMap.

Specified by:
fetchUser in class Authenticator
Returns:
The properly initialised object.
Throws:
com.withay.http.PasswordRetrievalException - If errors are encountered while fetching the database object.

SPT Core API