Class PasswordUtils
java.lang.Object
net.schmizz.sshj.userauth.password.PasswordUtils
Static utility method and factories
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
blankOut
(char[] pwd) Blank out a character arraystatic PasswordFinder
createOneOff
(char[] password) static byte[]
toByteArray
(char[] password) Converts a password to a UTF-8 encoded byte array
-
Constructor Details
-
PasswordUtils
public PasswordUtils()
-
-
Method Details
-
blankOut
public static void blankOut(char[] pwd) Blank out a character array- Parameters:
pwd
- the character array
-
createOneOff
- Parameters:
password
- the password as a char[]- Returns:
- the constructed
PasswordFinder
-
toByteArray
public static byte[] toByteArray(char[] password) Converts a password to a UTF-8 encoded byte array- Parameters:
password
-- Returns:
-