Package africa.absa.inception.core.util
Class PasswordUtil
- java.lang.Object
-
- africa.absa.inception.core.util.PasswordUtil
-
public class PasswordUtil extends Object
The PasswordUtil class is a utility class which provides password-related utility methods.- Author:
- Marcus Portmann
-
-
Constructor Summary
Constructors Constructor Description PasswordUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcreatePasswordHash(String password)Create the SHA-512 hash of the specified password.static StringgenerateRandomPassword()Generate a random password.
-
-
-
Method Detail
-
createPasswordHash
public static final String createPasswordHash(String password)
Create the SHA-512 hash of the specified password.- Parameters:
password- the password to hash- Returns:
- the SHA-512 hash of the password
-
generateRandomPassword
public static String generateRandomPassword()
Generate a random password.- Returns:
- the random password
-
-