public class SecureRandomSaltGenerator extends Object implements com.atlassian.security.password.SaltGenerator
SecureRandom
. Because SecureRandom is thread-safe, salt generation
using this class is also thread-safe.
Clients should not use this class directly, but pass an instance to DefaultPasswordEncoder
.
Modifier and Type | Field and Description |
---|---|
static SecureRandomSaltGenerator |
INSTANCE |
Constructor and Description |
---|
SecureRandomSaltGenerator() |
Modifier and Type | Method and Description |
---|---|
byte[] |
generateSalt(int length) |
public static final SecureRandomSaltGenerator INSTANCE
Copyright © 2020 Atlassian. All rights reserved.