Uses of Class
com.aoapps.security.Password
-
Uses of Password in com.aoapps.security
Modifier and TypeClassDescriptionfinal class
UnlikePassword
, which goes out of its way to protect the password, an unprotected password provides access to the password value.Modifier and TypeMethodDescriptionPassword.valueOf
(char[] password) Gets a new password orOptional.empty()
whenpassword == null || password.length == 0
.Modifier and TypeMethodDescriptionbyte[]
Hash the given password toHashedPassword.Algorithm.getHashBytes()
bytes.boolean
Checks if this matches the provided password, alwaysfalse
when isHashedPassword.NO_PASSWORD
.ModifierConstructorDescriptionHashedPassword
(Password password) Creates a new hashed password using the recommended 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) 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.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
(Password password, SecureRandom secureRandom) Creates a new hashed password using the recommended algorithm, a random salt, and the recommended iterations using the providedSecureRandom
source.HashedPassword
(Password password, Random random) Deprecated.Please useSecureRandom
.
SecureRandom
.