Enum Class PaddingMethod

java.lang.Object
java.lang.Enum<PaddingMethod>
org.jpos.security.PaddingMethod
All Implemented Interfaces:
Serializable, Comparable<PaddingMethod>, Constable

public enum PaddingMethod extends Enum<PaddingMethod>
Indicate padding method for encripting data (e.g. pin block) used by the issuer.
  • Enum Constant Details

    • VSDC

      public static final PaddingMethod VSDC
      VISA padding

      Prefix data with byte containing the length of that data and then force ISO/IEC 9797-1 padding method 2 even if length of padded data are multiply of eight.

    • CCD

      public static final PaddingMethod CCD
      Common Core Definitions padding.

      Force ISO/IEC 9797-1 padding method 2 even if length of padded data are multiply of eight. In addition use the Cipher Block Chaining (CBC) Mode of Triple DES algotithm Described in EMV v4.2 Book 2 - June 2008, section 9.3.3

    • MCHIP

      public static final PaddingMethod MCHIP
      M/Chip 4 padding. Used ISO/IEC 9797-1 padding method 2
  • Method Details

    • values

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

      public static PaddingMethod valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null