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
AuthFileHashInterfacematch in interface AuthFileHashInterfaceplain - the plain passwordhashed - the hashed passwordjava.lang.Exceptionpublic java.lang.String hash(java.lang.String plain)
AuthFileHashInterfacehash in interface AuthFileHashInterfaceplain - the plain passwordCopyright © 2020 Regents of the University of California. All Rights Reserved.