EncryptionOptions¶
-
public enum
EncryptionOptions
¶ Options that can be passed when performing encryption.
Enum Constants¶
CVV_ASCII¶
-
public static final EncryptionOptions
CVV_ASCII
¶ Format CVV as an ASCII string with no padding and no null terminator. When not used, CVV will be in BCD, with trailing F for odd length values
DATA_PADDING_00¶
-
public static final EncryptionOptions
DATA_PADDING_00
¶ Encryption Options bit mapped flags passed as hex strings: Data padding with 0x00: XX XX XX XX 00 00 00 00
DATA_PADDING_FF¶
-
public static final EncryptionOptions
DATA_PADDING_FF
¶ Data padding with 0xff: XX XX XX XX ff ff ff ff
EXPIRY_ASCII¶
-
public static final EncryptionOptions
EXPIRY_ASCII
¶ Format Expiry Date (TLV tag 5F24) as an ASCII string with no padding
PAN_ASCII¶
-
public static final EncryptionOptions
PAN_ASCII
¶ Format PAN as an ASCII string with no padding and no null terminator. When not used, PAN will be in BCD, with trailing F for odd length values
TRACK1_EMV¶
-
public static final EncryptionOptions
TRACK1_EMV
¶ Format Track1 equivalent data (TLV tag 56) according the EMV Track 1 Equivalent Data spec. For CT and CTLS, this has no effect as they are already in the expected EMV format. When not used with MSR, Track1 will contain start and end sentinels and LRC.
TRACK2_ASCII¶
-
public static final EncryptionOptions
TRACK2_ASCII
¶ Format Track 2 as an ASCII string with no padding and no null terminator. When not used, Track2 will be in BCD, with trailing F for odd length values
TRACK2_ASCII_MSR¶
-
public static final EncryptionOptions
TRACK2_ASCII_MSR
¶ Format Track 2 as an ASCII string according to MSR spec with start ‘;’ and end ‘?’ sentinels but with no LRC or padding
TRACK2_EMV¶
-
public static final EncryptionOptions
TRACK2_EMV
¶ Format MSR Track 2 (TLV tag 57) according to the EMV Track 2 Equivalent Data spec. For CT and CTLS, this has no effect as they are already in the expected EMV format. When not used with MSR, Track2 will contain start and end sentinels and LRC.
TRUNCATE¶
-
public static final EncryptionOptions
TRUNCATE
¶ Truncate values if data exceeds the fixed length
TRUNCATE_PAN¶
-
public static final EncryptionOptions
TRUNCATE_PAN
¶ Truncate PAN (TLV tag 5A): 123456789FFFF => 123456789F
VALUE_ONLY¶
-
public static final EncryptionOptions
VALUE_ONLY
¶ Use the associated value only, without tag or length information. Not allowed if requesting more than one tag and one or more tags are requested as variable length.