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 |
byte[] |
generateSalt(int length)
Returns a byte array of the required length containing a random salt value. |
generateSalt
byte[] generateSalt(int length)
- Returns a byte array of the required length containing a random salt value.
Copyright © 2013 Atlassian. All Rights Reserved.