|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PasswordHasher
The password hasher interface, to allow maximum flexibility
Method Summary | |
---|---|
boolean |
checkPassword(java.lang.String cleartext,
java.lang.String hashed)
Checks if the given cleartext password conforms to the given hashed representation. |
java.lang.String |
getAlgorithmName()
|
int |
getSaltLength()
|
java.lang.String |
hashPassword(java.lang.String cleartext)
Hashes the given password using a random salt. |
java.lang.String |
hashPassword(java.lang.String cleartext,
java.lang.String salt)
Hashes the given password using the given salt. |
Method Detail |
---|
java.lang.String hashPassword(java.lang.String cleartext)
cleartext
- Password to hash.
java.lang.String hashPassword(java.lang.String cleartext, java.lang.String salt)
cleartext
- Password to hash.salt
- the salt to use.
boolean checkPassword(java.lang.String cleartext, java.lang.String hashed)
cleartext
- cleartext password to check.hashed
- hashed correct password to check against. may include the algorithm prefix.
java.lang.String getAlgorithmName()
int getSaltLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |