Class PasswordUtils
- java.lang.Object
-
- net.schmizz.sshj.userauth.password.PasswordUtils
-
public class PasswordUtils extends java.lang.Object
Static utility method and factories
-
-
Constructor Summary
Constructors Constructor Description PasswordUtils()
-
Method Summary
Modifier and Type Method Description static 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
-
-
-
Method Detail
-
blankOut
public static void blankOut(char[] pwd)
Blank out a character array- Parameters:
pwd
- the character array
-
createOneOff
public static PasswordFinder createOneOff(char[] password)
- 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:
-
-