org.apache.qpid.server.security.auth.database
Class HashedUser
java.lang.Object
org.apache.qpid.server.security.auth.database.HashedUser
- All Implemented Interfaces:
- Principal
public class HashedUser
- extends Object
- implements Principal
_name
String _name
_password
char[] _password
_encodedPassword
byte[] _encodedPassword
HashedUser
HashedUser(String[] data)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
HashedUser
public HashedUser(String name,
char[] password)
throws UnsupportedEncodingException,
NoSuchAlgorithmException
- Throws:
UnsupportedEncodingException
NoSuchAlgorithmException
getMD5
public static byte[] getMD5(byte[] data)
throws NoSuchAlgorithmException,
UnsupportedEncodingException
- Throws:
NoSuchAlgorithmException
UnsupportedEncodingException
getName
public String getName()
- Specified by:
getName
in interface Principal
toString
public String toString()
- Specified by:
toString
in interface Principal
- Overrides:
toString
in class Object
getPassword
char[] getPassword()
setPassword
void setPassword(char[] password,
boolean alreadyHashed)
throws UnsupportedEncodingException,
NoSuchAlgorithmException
- Throws:
UnsupportedEncodingException
NoSuchAlgorithmException
getEncodedPassword
byte[] getEncodedPassword()
throws org.apache.commons.codec.EncoderException,
UnsupportedEncodingException,
NoSuchAlgorithmException
- Throws:
org.apache.commons.codec.EncoderException
UnsupportedEncodingException
NoSuchAlgorithmException
isModified
public boolean isModified()
isDeleted
public boolean isDeleted()
delete
public void delete()
saved
public void saved()
Licensed to the Apache Software Foundation