Uses of Enum
com.aoapps.security.HashedPassword.Algorithm
-
Uses of HashedPassword.Algorithm in com.aoapps.security
Modifier and TypeFieldDescriptionstatic final HashedPassword.Algorithm
HashedPassword.RECOMMENDED_ALGORITHM
The algorithm recommended for use with new passwords.Modifier and TypeMethodDescriptionstatic HashedPassword.Algorithm
HashedPassword.Algorithm.findAlgorithm
(String algorithmName) Case-insensitive lookup by algorithm name.HashedPassword.getAlgorithm()
static HashedPassword.Algorithm
Returns the enum constant of this type with the specified name.static HashedPassword.Algorithm[]
HashedPassword.Algorithm.values()
Returns an array containing the constants of this enum type, in the order they are declared.Modifier and TypeMethodDescriptionstatic HashedPassword
HashedPassword.valueOf
(HashedPassword.Algorithm algorithm, byte[] salt, int iterations, byte[] hash) Restores aHashedPassword
from its individual fields.ModifierConstructorDescriptionHashedPassword
(HashedPassword.Algorithm algorithm, byte[] salt, int iterations, byte[] hash) Deprecated.HashedPassword
(Password password, HashedPassword.Algorithm algorithm) Creates a new hashed password using the given algorithm, a random salt, and the recommended iterations using a defaultSecureRandom
instance, which is not a strong instance to avoid blocking.HashedPassword
(Password password, HashedPassword.Algorithm algorithm, byte[] salt, int iterations) Creates a new hashed password using the given algorithm, salt, and iterations.HashedPassword
(Password password, HashedPassword.Algorithm algorithm, int iterations) Creates a new hashed password using the given algorithm, a random salt, and the given iterations using a defaultSecureRandom
instance, which is not a strong instance to avoid blocking.HashedPassword
(Password password, HashedPassword.Algorithm algorithm, int iterations, SecureRandom secureRandom) Creates a new hashed password using the given algorithm, a random salt, and the given iterations using the providedSecureRandom
source.HashedPassword
(Password password, HashedPassword.Algorithm algorithm, int iterations, Random random) Deprecated.Please useSecureRandom
.HashedPassword
(Password password, HashedPassword.Algorithm algorithm, SecureRandom secureRandom) Creates a new hashed password using the given algorithm, a random salt, and the recommended iterations using the providedSecureRandom
source.HashedPassword
(Password password, HashedPassword.Algorithm algorithm, Random random) Deprecated.Please useSecureRandom
.HashedPassword
(String password, HashedPassword.Algorithm algorithm) Deprecated.Please useHashedPassword(com.aoapps.security.Password, com.aoapps.security.HashedPassword.Algorithm)
so the password may be destroyed.HashedPassword
(String password, HashedPassword.Algorithm algorithm, byte[] salt, int iterations) Deprecated.Please useHashedPassword(com.aoapps.security.Password, com.aoapps.security.HashedPassword.Algorithm, byte[], int)
so the password may be destroyed.HashedPassword
(String password, HashedPassword.Algorithm algorithm, int iterations) Deprecated.Please useHashedPassword(com.aoapps.security.Password, com.aoapps.security.HashedPassword.Algorithm, int)
so the password may be destroyed.HashedPassword
(String password, HashedPassword.Algorithm algorithm, int iterations, SecureRandom secureRandom) Deprecated.Please useHashedPassword(com.aoapps.security.Password, com.aoapps.security.HashedPassword.Algorithm, int, java.security.SecureRandom)
so the password may be destroyed.HashedPassword
(String password, HashedPassword.Algorithm algorithm, int iterations, Random random) Deprecated.Please useHashedPassword(com.aoapps.security.Password, com.aoapps.security.HashedPassword.Algorithm, int, java.util.Random)
so the password may be destroyed.HashedPassword
(String password, HashedPassword.Algorithm algorithm, SecureRandom secureRandom) Deprecated.Please useHashedPassword(com.aoapps.security.Password, com.aoapps.security.HashedPassword.Algorithm, java.security.SecureRandom)
so the password may be destroyed.HashedPassword
(String password, HashedPassword.Algorithm algorithm, Random random) Deprecated.Please useHashedPassword(com.aoapps.security.Password, com.aoapps.security.HashedPassword.Algorithm, java.util.Random)
so the password may be destroyed.
HashedPassword.valueOf(com.aoapps.security.HashedPassword.Algorithm, byte[], int, byte[])
, which is able to automatically return theHashedPassword.NO_PASSWORD
singleton.