Enum WalletPinErrorCode

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

    public enum WalletPinErrorCode
    extends java.lang.Enum<WalletPinErrorCode>
    An enum of the list of error codes related to specific use case for wallet PIN management. This class is deprecated and no longer supported since SDK version 6.0
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      PIN_ALREADY_EXISTING
      Error happens while setting a new wallet PIN but it already exists.
      PIN_CONDITION_NOT_SATISFIED
      Error happens if user tries to set the wallet PIN with invalid length and not following the ISO-9564 Format 0
      PIN_CONFIRMATION_MISMATCH
      When setting a new wallet PIN, the SDK will ask to confirm the first pin entered by entering in again.
      PIN_NOT_CHANGED
      Error happens while changing the wallet PIN.
      PIN_NOT_EXISTING
      Error happens when performing wallet PIN related operations but wallet pin is not set.
      PIN_NOT_SUPPORTED
      Error happens while the card profile not supporting wallet PIN, or support card type unknown because there is no card installed in the MPA yet.
      PIN_SET_FAILED
      Error happens while failing to a new wallet PIN.
      PIN_VERIFY_INTERNAL_ERROR
      Error happens while verifying wallet pin.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static WalletPinErrorCode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static WalletPinErrorCode[] 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, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • PIN_CONFIRMATION_MISMATCH

        public static final WalletPinErrorCode PIN_CONFIRMATION_MISMATCH
        When setting a new wallet PIN, the SDK will ask to confirm the first pin entered by entering in again. This error will take place if the values do not match.
      • PIN_SET_FAILED

        public static final WalletPinErrorCode PIN_SET_FAILED
        Error happens while failing to a new wallet PIN. Details will be provided in the message. This error will happen when exception happens internally or native fails to set.
      • PIN_NOT_CHANGED

        public static final WalletPinErrorCode PIN_NOT_CHANGED
        Error happens while changing the wallet PIN. Details will be provided in the message.
      • PIN_NOT_SUPPORTED

        public static final WalletPinErrorCode PIN_NOT_SUPPORTED
        Error happens while the card profile not supporting wallet PIN, or support card type unknown because there is no card installed in the MPA yet.
      • PIN_NOT_EXISTING

        public static final WalletPinErrorCode PIN_NOT_EXISTING
        Error happens when performing wallet PIN related operations but wallet pin is not set. This error will happen if user try to change the wallet PIN but no wallet PIN has been set before.
      • PIN_CONDITION_NOT_SATISFIED

        public static final WalletPinErrorCode PIN_CONDITION_NOT_SATISFIED
        Error happens if user tries to set the wallet PIN with invalid length and not following the ISO-9564 Format 0
      • PIN_VERIFY_INTERNAL_ERROR

        public static final WalletPinErrorCode PIN_VERIFY_INTERNAL_ERROR
        Error happens while verifying wallet pin. Details will be provided in the message.
        Since:
        TSHPay SDK 6.6.0
    • Method Detail

      • values

        public static WalletPinErrorCode[] 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 (WalletPinErrorCode c : WalletPinErrorCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static WalletPinErrorCode 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