com.ibm.di.api.remote.impl.rmi
Class NullPrompter

java.lang.Object
  extended by com.ibm.di.api.remote.impl.rmi.NullPrompter
All Implemented Interfaces:
CallbackHandler

public class NullPrompter
extends Object
implements CallbackHandler

This class implements CallbackHandler interface handling behaviour but without doing any prompting.

The constructor with no parameters is overridden by NullPrompter class to hide the constructor with no parameters, since we are not prompting. *


Constructor Summary
NullPrompter(String userName, char[] authenticator)
          Constructor with two parameters.
 
Method Summary
 void handle(Callback[] callbacks)
          Handles callbacks passed from the underlying security services.
 void nukeEm()
          Clears the user name and authenticator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullPrompter

public NullPrompter(String userName,
                    char[] authenticator)
Constructor with two parameters.

Parameters:
userName -
authenticator -
Method Detail

nukeEm

public void nukeEm()
Clears the user name and authenticator.


handle

public void handle(Callback[] callbacks)
            throws IOException,
                   UnsupportedCallbackException
Handles callbacks passed from the underlying security services.

Specified by:
handle in interface CallbackHandler
Parameters:
callbacks - an array of Callback objects provided by an underlying security service which contains the information requested to be retrieved or displayed
Throws:
IOException - if an I/O error occurs
UnsupportedCallbackException - if unrecognized callback occurs