jhomenet.security
Class DefaultConsoleCallbackHandler

java.lang.Object
  extended by jhomenet.security.DefaultConsoleCallbackHandler
All Implemented Interfaces:
javax.security.auth.callback.CallbackHandler

public class DefaultConsoleCallbackHandler
extends java.lang.Object
implements javax.security.auth.callback.CallbackHandler

ConsoleCallbackHandler prompts and reads from the command line console line for username and password. This can be used by a JAAS application to instantiate a CallbackHandler.


Constructor Summary
DefaultConsoleCallbackHandler()
          Default constructor.
 
Method Summary
 void handle(javax.security.auth.callback.Callback[] callbacks)
          Handles the specified set of callbacks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConsoleCallbackHandler

public DefaultConsoleCallbackHandler()
Default constructor. Creates a callback handler that prompts and reads from the command line for answers to authentication questions. This can be used by JAAS applications to instantiate a CallbackHandler.

Method Detail

handle

public void handle(javax.security.auth.callback.Callback[] callbacks)
            throws java.io.IOException,
                   javax.security.auth.callback.UnsupportedCallbackException
Handles the specified set of callbacks. This class supports NameCallback and PasswordCallback.

Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
Throws:
java.io.IOException
javax.security.auth.callback.UnsupportedCallbackException
See Also:
CallbackHandler.handle(javax.security.auth.callback.Callback[])


Copyright © 2004-2005 David Irwin. All Rights Reserved.