Package 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$
- Author:
- Scott.Stark@jboss.org
- See Also:
CallbackHandler
,handle(Callback[])
-
-
Constructor Summary
Constructors Constructor Description ConsoleInputHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(Callback[] callbacks)
Sets any NameCallback name property to the instance username, sets any PasswordCallback password property to the instance, and any password.
-
-
-
Method Detail
-
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 interfaceCallbackHandler
- Throws:
UnsupportedCallbackException
-
-