com.ecyrd.jspwiki.auth.login
Class WikiCallbackHandler

java.lang.Object
  extended by com.ecyrd.jspwiki.auth.login.WikiCallbackHandler
All Implemented Interfaces:
CallbackHandler

public class WikiCallbackHandler
extends Object
implements CallbackHandler

Handles logins made from inside the wiki application, rather than via the web container. This handler is instantiated in AuthenticationManager.login(WikiSession, String, String). If container-managed authentication is used, the WebContainerCallbackHandleris used instead. This callback handler is designed to be used with UserDatabaseLoginModule.

Since:
2.3
Version:
$Revision: 1.5 $ $Date: 2006/02/04 21:35:05 $
Author:
Andrew Jaquith

Constructor Summary
WikiCallbackHandler(UserDatabase database, String username, String password)
           
 
Method Summary
 void handle(Callback[] callbacks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiCallbackHandler

public WikiCallbackHandler(UserDatabase database,
                           String username,
                           String password)
Method Detail

handle

public void handle(Callback[] callbacks)
            throws IOException,
                   UnsupportedCallbackException
Specified by:
handle in interface CallbackHandler
Throws:
IOException
UnsupportedCallbackException
See Also:
CallbackHandler.handle(javax.security.auth.callback.Callback[])