public class PasswordUtil
extends java.lang.Object
Constructor and Description |
---|
PasswordUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
erasePassword(byte[] pwdBytes)
Erase the password byte array by setting its elements to zero.
|
static byte[] |
getByteArrayPassword(java.lang.String password)
Gets the byte array of the given password from uisng UTF-8 encoding.
|
public static byte[] getByteArrayPassword(java.lang.String password) throws WIMSystemException
password
- the string of the password to encode.WIMSystemException
public static void erasePassword(byte[] pwdBytes)
pwdBytes
- The password bypte array to be erased.