org.objectweb.jonas.security.realm.lib
Class HashPassword

java.lang.Object
  extended by org.objectweb.jonas.security.realm.lib.HashPassword
All Implemented Interfaces:
java.io.Serializable

public class HashPassword
extends java.lang.Object
implements java.io.Serializable

This class implements a way for storing the hash of a password and the correspondig algorithm

Author:
Florent Benoit
See Also:
Serialized Form

Constructor Summary
HashPassword(java.lang.String password, java.lang.String algorithm)
          Constructor
 
Method Summary
 java.lang.String getAlgorithm()
          Return the algorithm used for this password
 java.lang.String getPassword()
          Return the hash of the password
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashPassword

public HashPassword(java.lang.String password,
                    java.lang.String algorithm)
Constructor

Parameters:
password - the hash of the password
algorithm - algorithm of the encoded password
Method Detail

getPassword

public java.lang.String getPassword()
Return the hash of the password

Returns:
the hash of the password

getAlgorithm

public java.lang.String getAlgorithm()
Return the algorithm used for this password

Returns:
the algorithm used for this password