|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PasswordHashGenerator
Used by DefaultPasswordEncoder
to generate encoded password bytes.
Method Summary | |
---|---|
byte[] |
generateHash(byte[] password,
byte[] salt)
Encodes the rawPassword bytes and salt according to their method specified by the implementation. |
int |
getRequiredSaltLength()
Returns the required salt length for this hash generator, zero if this generator does not require a salt or -1 if the generator accepts salts of varying length. |
Method Detail |
---|
byte[] generateHash(byte[] password, byte[] salt)
password
- the password to be encodedsalt
- a salt which may be used by some algorithms
int getRequiredSaltLength()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |