Class PasswordUtils
- java.lang.Object
-
- net.schmizz.sshj.userauth.password.PasswordUtils
-
public class PasswordUtils extends java.lang.ObjectStatic utility method and factories
-
-
Constructor Summary
Constructors Constructor Description PasswordUtils()
-
Method Summary
Modifier and Type Method Description static voidblankOut(char[] pwd)Blank out a character arraystatic PasswordFindercreateOneOff(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:
-
-