Enum ProfileChannel

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

    public enum ProfileChannel
    extends java.lang.Enum<ProfileChannel>
    This enum is use to analyse what payment is supported for a card and returns byte code for each profile Type.
    • Enum Constant Detail

      • CONTACTLESS

        public static final ProfileChannel CONTACTLESS
        The payment will be done using contactless
      • QR

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

        public static final ProfileChannel DSRP
        Payment can be done remotely, using another app
      • CONTACTLESS_AND_QR

        public static final ProfileChannel CONTACTLESS_AND_QR
        Contactless and QR are supported
      • CONTACTLESS_AND_DSRP

        public static final ProfileChannel CONTACTLESS_AND_DSRP
        Contactless and DSRP supported
      • CONTACTLESS_AND_DSRP_AND_QR

        public static final ProfileChannel CONTACTLESS_AND_DSRP_AND_QR
        Contactless, QR and DSRP supported
    • Method Detail

      • values

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

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

        public static ProfileChannel get​(byte value)
                                  throws InternalComponentException
        This method is used to get the Codebyte of the ProfileChannel, based on the value returned handling of the profile operation will differ.
        Parameters:
        value - - Byte value of the Profile Channel
        Returns:
        - Return the Profile Channel for the byte value passed
        Throws:
        InternalComponentException
      • isQrSupported

        public static boolean isQrSupported​(ProfileChannel channel)
        Utility method to know if QR payment is supported or not
        Parameters:
        channel - - Payment Channel of the card
        Returns:
        - Returns true or false if the given profile supports QR Payment.
      • isClSupported

        public static boolean isClSupported​(ProfileChannel channel)
        Utility method to know if Contactless payment is supported or not
        Parameters:
        channel - - Payment Channel of the card
        Returns:
        - Returns true or false if the given profile supports Contactless Payment
      • isDsrpSupported

        public static boolean isDsrpSupported​(ProfileChannel channel)
        Utility method to know if DSRP payment is supported or not
        Parameters:
        channel - - Payment Channel of the card
        Returns:
        - Returns true or false if the given profile supports Dsrp Payment.
      • getProfileChannel

        public static ProfileChannel getProfileChannel​(byte[] channel)
      • toString

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