org.apache.qpid.management.common.sasl
Class UsernameHashedPasswordCallbackHandler
java.lang.Object
org.apache.qpid.management.common.sasl.UsernameHashedPasswordCallbackHandler
- All Implemented Interfaces:
- CallbackHandler
public class UsernameHashedPasswordCallbackHandler
- extends Object
- implements CallbackHandler
UsernameHashedPasswordCallbackHandler
public UsernameHashedPasswordCallbackHandler(String user,
String password)
throws Exception
- Throws:
Exception
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