Enum Class KeyScheme

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

public enum KeyScheme extends Enum<KeyScheme>
Key Encription Scheme.
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Encryption of single/double/triple-length DES invalid input: '&' AES keys using the ANSI X9 TR-31 Key Block methods.
    Encryption of all DES, AES, HMAC invalid input: '&' RSA keys using proprietary Key Block methods.
    Encryption of a triple length DES key using the variant method.
    Encryption of a double length DES key using the variant method.
    Encryption of a double length key using X9.17 methods.
    Encryption of a triple length key using X9.17 methods.
    Encryption of a single length DES key using X9.17 methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    static KeyScheme
    Returns the enum constant of this class with the specified name.
    static KeyScheme[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • Z

      public static final KeyScheme Z
      Encryption of a single length DES key using X9.17 methods.

      Used for encryption of keys under a variant LMK..

    • X

      public static final KeyScheme X
      Encryption of a double length key using X9.17 methods.
    • U

      public static final KeyScheme U
      Encryption of a double length DES key using the variant method.

      Used for encryption of keys under a variant LMK.

    • Y

      public static final KeyScheme Y
      Encryption of a triple length key using X9.17 methods.
    • T

      public static final KeyScheme T
      Encryption of a triple length DES key using the variant method.

      Used for encryption of keys under a variant LMK.

    • R

      public static final KeyScheme R
      Encryption of single/double/triple-length DES invalid input: '&' AES keys using the ANSI X9 TR-31 Key Block methods.

      Only used for exporting keys (e.g. under a KEK).

      The ANSI X9 Committee published Technical Report 31 (TR-31) on Interoperable Secure Key ExcKey Block Specification for Symmetric Algorithms in 2010 to describe a method for secure key exchange which meets the needs of X9.24.

    • S

      public static final KeyScheme S
      Encryption of all DES, AES, HMAC invalid input: '&' RSA keys using proprietary Key Block methods.

      Used for encrypting keys for local use (under a Key Block LMK) or for importing/exporting keys (e.g. under a KEK or ZMK).

  • Method Details

    • values

      public static KeyScheme[] 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 KeyScheme 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