public interface SaltGenerator
DefaultPasswordEncoder to generate a password salt of a desired length.
A password salt is a random value used when encoding passwords to ensure that encoding the same password multiple times gives a different encoded value each time. The salt must be available later when verifying the password, so in some implementations it is stored with the password.
| Modifier and Type | Method and Description |
|---|---|
byte[] |
generateSalt(int length)
Returns a byte array of the required length containing a random salt value.
|
Copyright © 2017 Atlassian. All rights reserved.