public class ShaHashDigest extends Base64EncodedHashDigest implements PasswordEncryptor
PasswordEncryptor implementation using base64 encoded SHA password hashes
| Constructor and Description |
|---|
ShaHashDigest() |
| Modifier and Type | Method and Description |
|---|---|
String |
encrypt(String password)
Encrypt the given password
|
protected String |
getAlgorithmName()
allows subclasses to select the hash algorithm
|
check, createByteHash, createDigestInstance, encodeHashclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckprotected String getAlgorithmName()
Base64EncodedHashDigestgetAlgorithmName in class Base64EncodedHashDigestpublic String encrypt(String password)
PasswordEncryptorencrypt in interface PasswordEncryptorencrypt in class Base64EncodedHashDigestCopyright © 2018. All rights reserved.