org.jboss.security.auth.callback
Class ConsoleInputHandler
java.lang.Object
org.jboss.security.auth.callback.ConsoleInputHandler
- All Implemented Interfaces:
- CallbackHandler
public class ConsoleInputHandler
- extends Object
- implements CallbackHandler
An implementation of CallbackHandler that obtains the values for
NameCallback and PasswordCallback from the console.
- Version:
- $Revision: 1.3.6.1 $
- Author:
- Scott.Stark@jboss.org
- See Also:
CallbackHandler
,
handle(Callback[])
Method Summary |
void |
handle(Callback[] callbacks)
Sets any NameCallback name property to the instance username,
sets any PasswordCallback password property to the instance, and any
password. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleInputHandler
public ConsoleInputHandler()
handle
public void handle(Callback[] callbacks)
throws UnsupportedCallbackException
- Sets any NameCallback name property to the instance username,
sets any PasswordCallback password property to the instance, and any
password.
- Specified by:
handle
in interface CallbackHandler
- Throws:
UnsupportedCallbackException,
- thrown if any callback of
type other than NameCallback or PasswordCallback are seen.
UnsupportedCallbackException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.