|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.jasypt.salt.RandomSaltGenerator
public final class RandomSaltGenerator
This implementation of SaltGenerator
holds a secure random
generator which can be used for generating random salts for encryption
or digesting.
This class is thread-safe.
Constructor Summary | |
---|---|
RandomSaltGenerator()
Creates a new instance of RandomSaltGenerator |
Method Summary | |
---|---|
byte[] |
generateSalt(int lengthBytes)
Generate a random salt of the specified length in bytes. |
boolean |
includePlainSaltInEncryptionResults()
This salt generator needs the salt to be included unencrypted in encryption results, because of its being random. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomSaltGenerator()
Method Detail |
---|
public byte[] generateSalt(int lengthBytes)
generateSalt
in interface SaltGenerator
lengthBytes
- 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 |