public class AuthFileBCryptHash extends java.lang.Object implements AuthFileHashInterface
Constructor and Description |
---|
AuthFileBCryptHash()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
hash(java.lang.String plain)
Generate the hash value for a specified plaint password
|
boolean |
match(java.lang.String plain,
java.lang.String hashed)
Check if the plain password matches the hashed password.
|
public boolean match(java.lang.String plain, java.lang.String hashed) throws java.lang.Exception
AuthFileHashInterface
match
in interface AuthFileHashInterface
plain
- the plain passwordhashed
- the hashed passwordjava.lang.Exception
public java.lang.String hash(java.lang.String plain)
AuthFileHashInterface
hash
in interface AuthFileHashInterface
plain
- the plain passwordCopyright © 2020 Regents of the University of California. All Rights Reserved.