Enum Exportability

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Exportability>

    public enum Exportability
    extends java.lang.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 Summary

      Enum Constants 
      Enum Constant Description
      ANY
      May only be exported in a trusted key block, provided the wrapping key itself is in a trusted format.
      NONE
      No export permitted.
      TRUSTED
      May only be exported in a trusted key block, provided the wrapping key itself is in a trusted format only if allowed.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      char getCode()
      Get exportability code.
      java.lang.String getName()
      Get exportability name.
      java.lang.String toString()  
      static Exportability valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Exportability valueOfByCode​(char code)
      Returns the enum constant of this type with the specified code.
      static Exportability[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

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

      • 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.
      • 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 Detail

      • values

        public static Exportability[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Exportability c : Exportability.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Exportability valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getCode

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.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.