org.apache.camel.example.reportincident
Class UTPasswordCallback

java.lang.Object
  extended by org.apache.camel.example.reportincident.UTPasswordCallback
All Implemented Interfaces:
CallbackHandler

public class UTPasswordCallback
extends Object
implements CallbackHandler

Callback handler to handle passwords


Constructor Summary
UTPasswordCallback()
           
 
Method Summary
 void handle(Callback[] callbacks)
          Here, we attempt to get the password from the private alias/passwords map.
 void setAliasPassword(String alias, String password)
          Add an alias/password pair to the callback mechanism.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UTPasswordCallback

public UTPasswordCallback()
Method Detail

handle

public void handle(Callback[] callbacks)
            throws IOException,
                   UnsupportedCallbackException
Here, we attempt to get the password from the private alias/passwords map.

Specified by:
handle in interface CallbackHandler
Throws:
IOException
UnsupportedCallbackException

setAliasPassword

public void setAliasPassword(String alias,
                             String password)
Add an alias/password pair to the callback mechanism.



Apache CAMEL