Package org.wildfly.security.util
Class PasswordUtil
- java.lang.Object
-
- org.wildfly.security.util.PasswordUtil
-
public class PasswordUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private static String
CHARS
private static SecureRandom
RANDOM
-
Constructor Summary
Constructors Constructor Description PasswordUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
generateSecureRandomString(int stringSize)
Generate a random string of given size.
-
-
-
Field Detail
-
RANDOM
private static final SecureRandom RANDOM
-
CHARS
private static final String CHARS
- See Also:
- Constant Field Values
-
-
Method Detail
-
generateSecureRandomString
public static String generateSecureRandomString(int stringSize)
Generate a random string of given size.- Parameters:
stringSize
- the size of the string- Returns:
- a random string
-
-