|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.atlassian.security.password.RandomSaltGenerator
public final class RandomSaltGenerator
Generates a salt using a static instance of Random. Because Random is thread-safe,
salt generation using this class is also thread-safe.
DefaultPasswordEncoder.
| Constructor Summary | |
|---|---|
RandomSaltGenerator()
|
|
| Method Summary | |
|---|---|
byte[] |
generateSalt(int length)
Returns a byte array of the required length containing a random salt value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomSaltGenerator()
| Method Detail |
|---|
public byte[] generateSalt(int length)
SaltGenerator
generateSalt in interface SaltGenerator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||