com.ibm.websphere.security.auth.callback

Class WSStdinCallbackHandlerImpl

  1. java.lang.Object
  2. extended bycom.ibm.websphere.security.auth.callback.WSStdinCallbackHandlerImpl
All implemented interfaces:
javax.security.auth.callback.CallbackHandler

  1. public class WSStdinCallbackHandlerImpl
  2. extends java.lang.Object
  3. implements javax.security.auth.callback.CallbackHandler

The WSStdinCallbackHandlerImpl gathers the authentication data from STDIN and pushs them 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:

Since:
1.0
Version:
1.0
See Also:
NameCallback, PasswordCallback

Constructor Summary

Constructor and Description
WSStdinCallbackHandlerImpl()
Constructor does not do anything except tracing.
WSStdinCallbackHandlerImpl(java.lang.String r_name)
WSStdinCallbackHandlerImpl(java.lang.String r_name,java.lang.String t_input)

Method Summary

Modifier and Type Method and Description
  1. void
handle(javax.security.auth.callback.Callback[] callbacks)
This implementation of WSStdinCallbackHandler collect the username and password data from STDIN and pushes the data to the login module.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

WSStdinCallbackHandlerImpl

  1. public WSStdinCallbackHandlerImpl( )

Constructor does not do anything except tracing.


WSStdinCallbackHandlerImpl

  1. public WSStdinCallbackHandlerImpl( java.lang.String r_name)

WSStdinCallbackHandlerImpl

  1. public WSStdinCallbackHandlerImpl( java.lang.String r_name,
  2. java.lang.String t_input)

Method Detail

handle

  1. public void handle(javax.security.auth.callback.Callback[] callbacks)
  2. throws java.io.IOException
  3. javax.security.auth.callback.UnsupportedCallbackException

This implementation of WSStdinCallbackHandler collect the username and password data from STDIN and pushes the data 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 is defined, use WebSphere's default string.

Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
Parameters:
callbacks - An array of Callback objects provided by the underlying security service which contains the information requested to be retrieved or displayed.
Throws:
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.