org.apache.qpid.server.security.auth.database
Class HashedUser

java.lang.Object
  extended by org.apache.qpid.server.security.auth.database.HashedUser
All Implemented Interfaces:
Principal

public class HashedUser
extends Object
implements Principal


Field Summary
(package private)  byte[] _encodedPassword
           
(package private)  String _name
           
(package private)  char[] _password
           
 
Constructor Summary
HashedUser(String[] data)
           
HashedUser(String name, char[] password)
           
 
Method Summary
 void delete()
           
(package private)  byte[] getEncodedPassword()
           
static byte[] getMD5(byte[] data)
           
 String getName()
           
(package private)  char[] getPassword()
           
 boolean isDeleted()
           
 boolean isModified()
           
 void saved()
           
(package private)  void setPassword(char[] password, boolean alreadyHashed)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode
 

Field Detail

_name

String _name

_password

char[] _password

_encodedPassword

byte[] _encodedPassword
Constructor Detail

HashedUser

HashedUser(String[] data)
     throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

HashedUser

public HashedUser(String name,
                  char[] password)
           throws UnsupportedEncodingException,
                  NoSuchAlgorithmException
Throws:
UnsupportedEncodingException
NoSuchAlgorithmException
Method Detail

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