Enum PTYCharset

java.lang.Object
java.lang.Enum<PTYCharset>
com.protegrity.ap.java.PTYCharset
All Implemented Interfaces:
Serializable, Comparable<PTYCharset>

public enum PTYCharset extends Enum<PTYCharset>
Encoding types for input data in protection operations.

The ptyCharsets parameter is mandatory for the data elements created with Unicode Gen2 tokenization method and the FPE encryption method. The encoding set for the ptyCharsets parameter must match the encoding of the input data passed. The default value for the ptyCharsets parameter is UTF-8.

Supported Encodings:

  • UTF-8
  • UTF-16LE
  • UTF-16BE
Since:
1.0.0
Author:
Protegrity
  • Enum Constant Details

  • Method Details

    • values

      public static PTYCharset[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PTYCharset valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getPTYCharset

      public static Charset getPTYCharset(PTYCharset... charset)