org.apache.qpid.management.common.sasl
Class UsernameHashedPasswordCallbackHandler

java.lang.Object
  extended by org.apache.qpid.management.common.sasl.UsernameHashedPasswordCallbackHandler
All Implemented Interfaces:
CallbackHandler

public class UsernameHashedPasswordCallbackHandler
extends Object
implements CallbackHandler


Constructor Summary
UsernameHashedPasswordCallbackHandler(String user, String password)
           
 
Method Summary
protected  void finalize()
           
static char[] getHash(String text)
           
 void handle(Callback[] callbacks)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsernameHashedPasswordCallbackHandler

public UsernameHashedPasswordCallbackHandler(String user,
                                             String password)
                                      throws Exception
Throws:
Exception
Method Detail

handle

public void handle(Callback[] callbacks)
            throws IOException,
                   UnsupportedCallbackException
Specified by:
handle in interface CallbackHandler
Throws:
IOException
UnsupportedCallbackException

finalize

protected void finalize()
Overrides:
finalize in class Object

getHash

public static char[] getHash(String text)
                      throws NoSuchAlgorithmException,
                             UnsupportedEncodingException
Throws:
NoSuchAlgorithmException
UnsupportedEncodingException


Licensed to the Apache Software Foundation