public interface PasswordHashGenerator
DefaultPasswordEncoder to generate encoded password bytes.| Modifier and Type | Method and Description |
|---|---|
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.
|
byte[] generateHash(byte[] password,
byte[] salt)
password - the password to be encodedsalt - a salt which may be used by some algorithmsint getRequiredSaltLength()
Copyright © 2016 Atlassian. All rights reserved.