Enum Class Exportability

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

public enum Exportability extends Enum<Exportability>
Defines the conditions under which the key contained in the key block can be exported outside the cryptographic domain in which the key is found.

Each value repesents byte 11 of the Keyblok Header.

  • Enum Constant Details

    • ANY

      public static final Exportability ANY
      May only be exported in a trusted key block, provided the wrapping key itself is in a trusted format.
    • NONE

      public static final Exportability NONE
      No export permitted.
    • TRUSTED

      public static final Exportability TRUSTED
      May only be exported in a trusted key block, provided the wrapping key itself is in a trusted format only if allowed.

      Sensitive; all other export possibilities are permitted, provided such export has been enabled (existing Authorized State requirements remain).

  • Method Details

    • values

      public static Exportability[] 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 Exportability 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 exportability code.
      Returns:
      the character exportability code
    • getName

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

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

      public static Exportability 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.