Class IssuerApplicationData
java.lang.Object
org.jpos.emv.IssuerApplicationData
- All Implemented Interfaces:
Loggeable
Issuer Application Data parser (IAD, tag 0x9F10) with support for the following formats:
- VIS 1.5
- M/CHIP 4
- EMV Format A (as per the EMV 4.3 Book 3 spec)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumIAD format discriminator. -
Constructor Summary
ConstructorsConstructorDescriptionIssuerApplicationData(byte[] iad) Constructs an IssuerApplicationData instance by parsing a byte-array IAD.IssuerApplicationData(String hexIAD) Constructs an IssuerApplicationData instance by parsing a hexadecimal IAD string. -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(PrintStream p, String indent) Dumps a human-readable representation of this object to the print stream.Returns a hexadecimal representation of the Card Verification Results (CVR).Returns a hexadecimal representation of the Common Core Identifier (CCI).Returns a hexadecimal representation of multiple counters, depending on the format.Returns theCryptogramSpecfor this IAD format.Returns a hexadecimal representation of the Cryptogram Version Number (CVN).getDAC()Returns a hexadecimal representation of the DAC/ICC dynamic number.Returns a hexadecimal representation of the Derivation Key Index (DKI).Returns the format of the IAD.Returns the Issuer Discretionary Data (IDD).Returns the last online Application Transaction Counter (ATC).toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Loggeable
dumpModifier and TypeMethodDescriptiondefault voiddump(PrintStream p, String indent, LogRenderer.Type type) Dumps a representation of this object using the specified renderer type.
-
Constructor Details
-
IssuerApplicationData
Constructs an IssuerApplicationData instance by parsing a hexadecimal IAD string.- Parameters:
hexIAD- Hexadecimal (String) representation of the IAD.
-
IssuerApplicationData
Constructs an IssuerApplicationData instance by parsing a byte-array IAD.- Parameters:
iad- Byte array representation of the IAD.
-
-
Method Details
-
getDerivationKeyIndex
Returns a hexadecimal representation of the Derivation Key Index (DKI).- Returns:
- A hexadecimal representation of the Derivation Key Index (DKI).
-
getCryptogramVersionNumber
Returns a hexadecimal representation of the Cryptogram Version Number (CVN).- Returns:
- A hexadecimal representation of the Cryptogram Version Number (CVN).
-
getCommonCoreIdentifier
Returns a hexadecimal representation of the Common Core Identifier (CCI).- Returns:
- A hexadecimal representation of the Common Core Identifier (CCI)
-
getCardVerificationResults
Returns a hexadecimal representation of the Card Verification Results (CVR).- Returns:
- A hexadecimal representation of the Card Verification Results (CVR).
-
getDAC
-
getCounters
Returns a hexadecimal representation of multiple counters, depending on the format.- Returns:
- A hexadecimal representation of multiple counters, depending on the format.
-
getFormat
Returns the format of the IAD.- Returns:
- The format of the IAD.
-
getIssuerDiscretionaryData
Returns the Issuer Discretionary Data (IDD).- Returns:
- The Issuer Discretionary Data (IDD).
-
getLastOnlineATC
Returns the last online Application Transaction Counter (ATC).- Returns:
- hexadecimal representation of the last online ATC, or
nullif not present.
-
getCryptogramSpec
Returns theCryptogramSpecfor this IAD format.- Returns:
- the cryptogram specification
-
toString
-
dump
-