IBM WebSphere Application ServerTM
Release 7

com.ibm.websphere.wssecurity.callbackhandler
Class UNTGUIPromptCallbackHandler

java.lang.Object
  extended by com.ibm.websphere.wssecurity.callbackhandler.UNTGUIPromptCallbackHandler
All Implemented Interfaces:
java.io.Serializable, javax.security.auth.callback.CallbackHandler

public class UNTGUIPromptCallbackHandler
extends java.lang.Object
implements javax.security.auth.callback.CallbackHandler, java.io.Serializable

This is a callback for user name token with GUI prompt in generator side. This instance is used to set into WSSGenerationContext object to generate a user name token.

See Also:
com.ibm.websphere.wssecurity.wssapi.token.UsenameToken, UNTGenerateCallbackHandler, Serialized Form

Constructor Summary
UNTGUIPromptCallbackHandler()
          Class constructor
UNTGUIPromptCallbackHandler(java.util.Map properties)
          Class constructor
 
Method Summary
 void handle(javax.security.auth.callback.Callback[] callbacks)
          Sets necessary information to NameCallback, PasswordCallback, WSRealmNameCallbackImpl, and WSCredTokenCallbackImpl objects.
static boolean isTrue(java.lang.String flag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UNTGUIPromptCallbackHandler

public UNTGUIPromptCallbackHandler()
Class constructor


UNTGUIPromptCallbackHandler

public UNTGUIPromptCallbackHandler(java.util.Map properties)
Class constructor

Parameters:
properties - map including key-value pairs
Method Detail

handle

public void handle(javax.security.auth.callback.Callback[] callbacks)
            throws java.io.IOException,
                   javax.security.auth.callback.UnsupportedCallbackException
Sets necessary information to NameCallback, PasswordCallback, WSRealmNameCallbackImpl, and WSCredTokenCallbackImpl objects.

Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
Parameters:
callbacks - 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.
See Also:
CallbackHandler.handle(javax.security.auth.callback.Callback[])

isTrue

public static boolean isTrue(java.lang.String flag)

IBM WebSphere Application ServerTM
Release 7