Enum Class Algorithm

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

public enum Algorithm extends Enum<Algorithm>
Defines the cryptographic algorithm with which the key contained in the key block will be used.

Each value repesents byte 7 of the Keyblok Header.

  • Enum Constant Details

    • AES

      public static final Algorithm AES
      AES - Advanced Encryption Standard.
    • DES

      public static final Algorithm DES
      DES - Data Encryption Standard.
    • EC

      public static final Algorithm EC
      Elliptic curve.
    • HMAC

      public static final Algorithm HMAC
      HMAC - Hash Message Authentication Code.
    • RSA

      public static final Algorithm RSA
      RSA - Rivest–Shamir–Adleman.
    • DSA

      public static final Algorithm DSA
      DSA - Digital Signature Algorithm.
    • TDES

      public static final Algorithm TDES
      TDES - Triple Data Encryption Standard.

      Also known as TDSA (official Triple Data Encryption Algorithm).

  • Method Details

    • values

      public static Algorithm[] 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 Algorithm 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
    • getCode

      public char getCode()
      Get algorithm code.
      Returns:
      character algorithm code
    • getName

      public String getName()
      Get algorithm name.
      Returns:
      the algorithm name
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Algorithm>
    • valueOfByCode

      public static Algorithm valueOfByCode(char code)
      Returns the enum constant of this type with the specified code.
      Parameters:
      code - the string must match exactly with identifier specified by ISO 8583-1:2003(E) Table A.22 — Transaction type codes
      Returns:
      the enum constant with the specified processing code or null if unknown.