Enum ProfileChannel
- java.lang.Object
-
- java.lang.Enum<ProfileChannel>
-
- com.gemalto.mfs.mwsdk.dcm.sdkconfig.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 Summary
Enum Constants Enum Constant Description CONTACTLESSThe payment will be done using contactlessCONTACTLESS_AND_DSRPContactless and DSRP supportedCONTACTLESS_AND_DSRP_AND_QRContactless, QR and DSRP supportedCONTACTLESS_AND_QRContactless and QR are supportedDSRPPayment can be done remotely, using another appQRPayment can be done using QR code
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProfileChannelget(byte value)This method is used to get the Codebyte of the ProfileChannel, based on the value returned handling of the profile operation will differ.byte[]getCode()static PaymentTypegetPaymentType(ProfileChannel profileChannel)static ProfileChannelgetProfileChannel(byte[] channel)static booleanisClSupported(ProfileChannel channel)Utility method to know if Contactless payment is supported or notstatic booleanisDsrpSupported(ProfileChannel channel)Utility method to know if DSRP payment is supported or notstatic booleanisQrSupported(ProfileChannel channel)Utility method to know if QR payment is supported or notjava.lang.StringtoString()String representation of the Enum.static ProfileChannelvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ProfileChannel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 namejava.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)
-
getPaymentType
public static PaymentType getPaymentType(ProfileChannel profileChannel)
-
toString
public java.lang.String toString()
String representation of the Enum.- Overrides:
toStringin classjava.lang.Enum<ProfileChannel>- Returns:
- String representation of the Enum.
-
-