com.ibm.websphere.security.auth.callback

Class NonPromptCallbackHandler

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

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

The NonPromptCallbackHandler gathers the authentication data from the constructor and passes it to the login module. These data includes Kerberos realm name, Kerberos principal name and password.

Supported Callbacks:

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

Constructor Summary

Constructor and Description
NonPromptCallbackHandler()
Constructor with no parameters.
NonPromptCallbackHandler(java.lang.String realmName,java.lang.String userid,java.lang.String password)
Constructs a NonPromptCallbackHandler using realmName, userid and password parameters.

Method Summary

Modifier and Type Method and Description
  1. void
handle(javax.security.auth.callback.Callback[] callbacks)
This implementation of NonPromptCallbackHandler collects the Kerberos realm name, principal name and password data supplied via the constructor and pushes them to the login module.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

NonPromptCallbackHandler

  1. public NonPromptCallbackHandler( )
Constructor with no parameters.

NonPromptCallbackHandler

  1. public NonPromptCallbackHandler( java.lang.String realmName,
  2. java.lang.String userid,
  3. java.lang.String password)
Constructs a NonPromptCallbackHandler using realmName, userid and password parameters. The parameters should include only stateless information.

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 NonPromptCallbackHandler collects the Kerberos realm name, principal name and password data supplied via the constructor 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.
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.