|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectorg.jasypt.salt.ZeroSaltGenerator
public class ZeroSaltGenerator
This implementation of SaltGenerator always returns a salt
of the required length, filled with zero bytes.
This class is thread-safe.
| Constructor Summary | |
|---|---|
ZeroSaltGenerator()
Creates a new instance of ZeroSaltGenerator |
|
| Method Summary | |
|---|---|
byte[] |
generateSalt(int lengthBytes)
Return salt with the specified byte length. |
boolean |
includePlainSaltInEncryptionResults()
As this salt generator provides a predictable salt, its inclusion unencrypted in encryption results is not necessary, and in fact not desirable (so that it remains hidden). |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZeroSaltGenerator()
| Method Detail |
|---|
public byte[] generateSalt(int lengthBytes)
generateSalt in interface SaltGeneratorlengthBytes - length in bytes.
public boolean includePlainSaltInEncryptionResults()
includePlainSaltInEncryptionResults in interface SaltGenerator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||