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

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

public class HashPassword
extends Object
implements 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(String password, String algorithm)
          Constructor
 
Method Summary
 String getAlgorithm()
          Return the algorithm used for this password
 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(String password,
                    String algorithm)
Constructor

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

getPassword

public String getPassword()
Return the hash of the password

Returns:
the hash of the password

getAlgorithm

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

Returns:
the algorithm used for this password


Copyright © 2010 OW2 Consortium. All Rights Reserved.