public class StdinPromptCallbackHandler
extends com.ibm.websphere.security.auth.callback.WSStdinCallbackHandlerImpl
The StdinPromptCallbackHandler gathers the authentication data from Stdin and pushs the data
to the login module. These data includes principal name and password. If the realm name can not
determined at the time of login prompt, a "<default>" realm name will be displayed.
Supported Callbacks:
javax.security.auth.callback.NameCallbackjavax.security.auth.callback.PasswordCallbackNameCallback,
PasswordCallback| Constructor and Description |
|---|
StdinPromptCallbackHandler()
Constructor with no parameters.
|
StdinPromptCallbackHandler(java.lang.String userid,
char[] password,
java.util.Map properties)
Constructs a
StdinPropmtCallbackHandler using userid, password
and properties parameters. |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(javax.security.auth.callback.Callback[] callbacks)
This implementation of
StdinPromptCallbackHandler collects the username and password data from
login prompt and pushes them to the login module. |
public StdinPromptCallbackHandler()
public StdinPromptCallbackHandler(java.lang.String userid,
char[] password,
java.util.Map properties)
StdinPropmtCallbackHandler using userid, password
and properties parameters.
The parameters should include only stateless information.userid - The user name.password - The user password.properties - A set of name-value pairs.public void handle(javax.security.auth.callback.Callback[] callbacks)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
This implementation of StdinPromptCallbackHandler collects the username and password data from
login prompt and pushes them to the login module. If the realm name can not determined at the time
of login prompt, a "<default>" realm name will be displayed.
Use prompt strings of each callback object passed to the method. If there is no prompt string provided, a default prompt will be used.
handle in interface javax.security.auth.callback.CallbackHandlerhandle in class com.ibm.websphere.security.auth.callback.WSStdinCallbackHandlerImplcallbacks - An array of Callback objects provided by the underlying
security service which contains the information
requested to be retrieved or displayed.java.io.IOException - If an input or output error occurs.javax.security.auth.callback.UnsupportedCallbackException - If the implementation of this method does not support one or more of the
Callbacks specified in the callbacks parameter.