Package com.atlassian.security.password
Interface SaltGenerator
- All Known Implementing Classes:
RandomSaltGenerator
public interface SaltGenerator
Used by
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.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]generateSalt(int length) Returns a byte array of the required length containing a random salt value.
-
Method Details
-
generateSalt
byte[] generateSalt(int length) Returns a byte array of the required length containing a random salt value.
-