diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2007-04-11 13:31:18 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2007-04-11 13:31:18 +0000 |
| commit | 786f4c78363db63f613f5d792d5f4465027e111b (patch) | |
| tree | f4dc03210d786a236876bfd4c59c6504eae6cf30 /java/client/src | |
| parent | c9aeb7dcd4cba2f47b0df7062108ef0b837c43bc (diff) | |
| download | qpid-python-786f4c78363db63f613f5d792d5f4465027e111b.tar.gz | |
QPID-446 AMQUserManagementMBean Initial implementation of user management in authentication file.
UserManagement - Added annotations for MBeanOperations
PrincipalDatabase - Added new methods to update,create,delete Principal.
- Implemented method on all PrincipalDatabase implementations, most return false to say not complete except
Base64MD5PasswordFilePrincipalDatabase - which now stores in memory the password file and flushes any changes to disk.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@527487 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client/src')
| -rw-r--r-- | java/client/src/main/java/org/apache/qpid/client/security/UsernameHashedPasswordCallbackHandler.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/client/security/UsernameHashedPasswordCallbackHandler.java b/java/client/src/main/java/org/apache/qpid/client/security/UsernameHashedPasswordCallbackHandler.java index dcca55e6c2..46323e8c09 100644 --- a/java/client/src/main/java/org/apache/qpid/client/security/UsernameHashedPasswordCallbackHandler.java +++ b/java/client/src/main/java/org/apache/qpid/client/security/UsernameHashedPasswordCallbackHandler.java @@ -91,13 +91,12 @@ public class UsernameHashedPasswordCallbackHandler implements AMQCallbackHandler byte[] digest = md.digest(); - char[] hash = new char[digest.length + 1]; + char[] hash = new char[digest.length ]; int index = 0; for (byte b : digest) - { - index++; - hash[index] = (char) b; + { + hash[index++] = (char) b; } return hash; |
