Class PasswordConverter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] convert​(char[] chars)
      Converts a password of Java characters into a password of bytes, using some encoding scheme.
      • Methods inherited from class java.lang.Object

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

      • PasswordConverter

        public PasswordConverter()
    • Method Detail

      • convert

        public byte[] convert​(char[] chars)
        Description copied from interface: KeyGenerator.CharToByteConverter
        Converts a password of Java characters into a password of bytes, using some encoding scheme. The input char array must not be modified.
        Specified by:
        convert in interface KeyGenerator.CharToByteConverter
        Parameters:
        chars - Password characters.
        Returns:
        Password as byte array.