Enum Class ProfileChannel

java.lang.Object
java.lang.Enum<ProfileChannel>
com.gemalto.mfs.mwsdk.dcm.sdkconfig.ProfileChannel
All Implemented Interfaces:
Serializable, Comparable<ProfileChannel>, Constable

public enum ProfileChannel extends Enum<ProfileChannel>
This enum is used to analyse the type of payment supported by a card and return byte codes for each profile.
  • Enum Constant Details

    • CONTACTLESS

      public static final ProfileChannel CONTACTLESS
      The payment to be done using contactless method.
    • QR

      public static final ProfileChannel QR
      Payment to be done using QR code.
    • DSRP

      public static final ProfileChannel DSRP
      Payment to be done remotely using another app.
    • CONTACTLESS_AND_QR

      public static final ProfileChannel CONTACTLESS_AND_QR
      Contactless and QR code payment types are supported.
    • CONTACTLESS_AND_DSRP

      public static final ProfileChannel CONTACTLESS_AND_DSRP
      Contactless and DSRP payment types are supported.
    • CONTACTLESS_AND_DSRP_AND_QR

      public static final ProfileChannel CONTACTLESS_AND_DSRP_AND_QR
      Contactless, QR code and DSRP payment types are supported.
  • Method Details

    • values

      public static ProfileChannel[] 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 ProfileChannel 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 byte[] getCode()
      Returns:
      byte[] Returns the byte code value of the ProfileChannel initialised.
    • get

      public static ProfileChannel get(byte value) throws InternalComponentException
      This method is used to get the bytecode of ProfileChannel based on the value returned. The handling of the profile operation will be different depending on the value returned.
      Returns:
      The payment channel of the byte value passed.
      Throws:
      InternalComponentException
    • isQrSupported

      public static boolean isQrSupported(ProfileChannel channel)
      A utility method to check if if QR payment is supported.
      Parameters:
      channel - The payment channel of the card.
      Returns:
      Whether the given profile supports QR code payment.
    • isClSupported

      public static boolean isClSupported(ProfileChannel channel)
      A utility method to check if contactless payment is supported.
      Parameters:
      channel - The payment channel of the card.
      Returns:
      Whether the given profile supports contactless payment.
    • isDsrpSupported

      public static boolean isDsrpSupported(ProfileChannel channel)
      A utility method to check if DSRP payment is supported.
      Parameters:
      channel - The payment channel of the card.
      Returns:
      Whether the given profile supports DSRP payment.
    • getProfileChannel

      public static ProfileChannel getProfileChannel(byte[] channel)
    • getPaymentType

      public static PaymentType getPaymentType(ProfileChannel profileChannel)
    • toString

      public String toString()
      String representation of the Enum.
      Overrides:
      toString in class Enum<ProfileChannel>
      Returns:
      String representation of the Enum.