|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.promotego.logic.PlainTextHash
public class PlainTextHash
Constructor Summary | |
---|---|
PlainTextHash()
|
Method Summary | |
---|---|
java.lang.String |
hash(java.lang.String password)
Hashes the password provided. |
boolean |
match(java.lang.String cryptedPassword,
java.lang.String password)
Compares the hashed password with the plain text password provided. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlainTextHash()
Method Detail |
---|
public boolean match(java.lang.String cryptedPassword, java.lang.String password)
PasswordHashTool
match
in interface PasswordHashTool
cryptedPassword
- A password hashed using this mechanism.password
- A plaintext password to compare to the hashedPassword.
public java.lang.String hash(java.lang.String password)
PasswordHashTool
hash
in interface PasswordHashTool
password
- The plaintext password to be hashed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |