Interface CharToByteConverter

All Known Implementing Classes:
PasswordConverter

public interface CharToByteConverter
Interface for a converter that produces a byte encoding for a char array.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    convert(char[] password)
    Return a byte encoded representation of the passed in password.
    Return the type of the conversion.
  • Method Details

    • getType

      String getType()
      Return the type of the conversion.
      Returns:
      a type name for the conversion.
    • convert

      byte[] convert(char[] password)
      Return a byte encoded representation of the passed in password.
      Parameters:
      password - the characters to encode.
      Returns:
      a byte encoding of password.