PasswordFactory
instead.@Deprecated public class UsernamePasswordHashUtil extends Object
Constructor and Description |
---|
UsernamePasswordHashUtil()
Deprecated.
The default constructor for UsernamePasswordHashUtil, when instantiated
using this constructor a local MD5 MessageDigest will be used for the
generated hashes.
|
UsernamePasswordHashUtil(MessageDigest digest)
Deprecated.
Constructor to allow a pre-instantiated MessageDigest to be supplied.
|
Modifier and Type | Method and Description |
---|---|
String |
generateHashedHexURP(String userName,
String realm,
char[] password)
Deprecated.
|
String |
generateHashedHexURP(String userName,
String realm,
char[] password,
boolean utf8StringConversion)
Deprecated.
|
byte[] |
generateHashedURP(String userName,
String realm,
char[] password)
Deprecated.
|
byte[] |
generateHashedURP(String userName,
String realm,
char[] password,
boolean utf8StringConversion)
Deprecated.
Takes the supplied username, realm and password and generates the digested { username ':' realm ':' password }
|
public UsernamePasswordHashUtil() throws NoSuchAlgorithmException
NoSuchAlgorithmException
- - If the MD5 MessageDigest fails to be created.public UsernamePasswordHashUtil(MessageDigest digest)
digest
- The MessageDigest to use for hash generation requests.public byte[] generateHashedURP(String userName, String realm, char[] password, boolean utf8StringConversion)
userName
- The username to use in the generated hash.realm
- The realm to use in the generated hash.password
- The password to use in the generated hash.utf8StringConversion
- Should a conversion to UTF-8 be allowed if non 8859_1 chars are encountered.public byte[] generateHashedURP(String userName, String realm, char[] password)
public String generateHashedHexURP(String userName, String realm, char[] password, boolean utf8StringConversion)
Copyright © 2020 JBoss by Red Hat. All rights reserved.