Class 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 array
      static PasswordFinder createOneOff​(char[] password)  
      static byte[] toByteArray​(char[] password)
      Converts a password to a UTF-8 encoded byte array
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PasswordUtils

        public PasswordUtils()
    • 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: