Class TerminalVerificationResults
java.lang.Object
org.jpos.emv.TerminalVerificationResults
- All Implemented Interfaces:
Loggeable
Terminal verification results (TVR) parser.
-
Constructor Summary
ConstructorsConstructorDescriptionTerminalVerificationResults(byte[] tvr) Constructs a TerminalVerificationResults from a 5-byte TVR array.TerminalVerificationResults(String hexTVR) Constructs a TerminalVerificationResults from a hex-encoded TVR string. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif the application is not yet effective.booleanReturnstrueif the card and terminal have different application versions.booleanReturnstrueif cardholder verification was not successful.booleanReturnstrueif Combined DDA/Application Cryptogram Generation (CDA) failed.booleanReturnstrueif Dynamic Data Authentication (DDA) failed.booleanReturnstrueif the default TDOL (Transaction Data Object List) was used.voiddump(PrintStream p, String indent) Dumps a human-readable binary representation of the TVR to the given stream.booleanReturnstrueif the application has expired.booleanReturnstrueif ICC data is missing.booleanReturnstrueif issuer authentication failed.booleanReturnstrueif the lower consecutive offline limit was exceeded.booleanReturnstrueif the merchant forced the transaction online.booleannewCard()Returnstrueif this is a new card (first transaction).booleanReturnstrueif offline data authentication was not performed.booleanReturnstrueif an online PIN was entered.booleanReturnstrueif the PAN appears in the hotlist.booleanReturnstrueif a PIN is required but no PIN pad is present.booleanReturnstrueif a PIN is required but was not entered.booleanReturnstrueif the PIN try limit has been exceeded.booleanReturnstrueif the relay resistance protocol was not performed.booleanReturnstrueif the relay resistance protocol is not supported.booleanReturnstrueif the relay resistance protocol was performed.booleanReturnstrueif the relay resistance threshold was exceeded.booleanReturnstrueif the relay resistance time limits were exceeded.booleanrfu()Returnstrueif any reserved-for-future-use (RFU) bit is unset as expected.booleanReturnstrueif an issuer script failed after the final Generate AC command.booleanReturnstrueif an issuer script failed before the final Generate AC command.booleanReturnstrueif Static Data Authentication (SDA) failed.booleanReturnstrueif SDA was selected.booleanReturnstrueif the service is not allowed for the card product.booleanReturnstrueif the transaction amount exceeds the floor limit.booleanReturnstrueif the transaction was selected randomly for online processing.booleanReturnstrueif an unrecognised CVM (Cardholder Verification Method) was encountered.booleanReturnstrueif the upper consecutive offline limit was exceeded.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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
-
TerminalVerificationResults
Constructs a TerminalVerificationResults from a 5-byte TVR array.- Parameters:
tvr- the 5-byte Terminal Verification Results value- Throws:
IllegalArgumentException- if the array length is not 5
-
TerminalVerificationResults
Constructs a TerminalVerificationResults from a hex-encoded TVR string.- Parameters:
hexTVR- 10-character hexadecimal string representing the 5-byte TVR
-
-
Method Details
-
offlineDataProcNotPerformed
Returnstrueif offline data authentication was not performed.- Returns:
trueif byte 1 bit 8 is set
-
sdaFailed
Returnstrueif Static Data Authentication (SDA) failed.- Returns:
trueif byte 1 bit 7 is set
-
iccDataMissing
Returnstrueif ICC data is missing.- Returns:
trueif byte 1 bit 6 is set
-
panInHotlist
Returnstrueif the PAN appears in the hotlist.- Returns:
trueif byte 1 bit 5 is set
-
ddaFailed
Returnstrueif Dynamic Data Authentication (DDA) failed.- Returns:
trueif byte 1 bit 4 is set
-
cdaFailed
Returnstrueif Combined DDA/Application Cryptogram Generation (CDA) failed.- Returns:
trueif byte 1 bit 3 is set
-
sdaSelected
-
rfu
Returnstrueif any reserved-for-future-use (RFU) bit is unset as expected.- Returns:
trueif none of the RFU bits are unexpectedly set
-
cardAndTerminalDiffApps
Returnstrueif the card and terminal have different application versions.- Returns:
trueif byte 2 bit 8 is set
-
expiredApplication
Returnstrueif the application has expired.- Returns:
trueif byte 2 bit 7 is set
-
applicationNotEffective
Returnstrueif the application is not yet effective.- Returns:
trueif byte 2 bit 6 is set
-
serviceNotAllowedForCardProduct
Returnstrueif the service is not allowed for the card product.- Returns:
trueif byte 2 bit 5 is set
-
newCard
Returnstrueif this is a new card (first transaction).- Returns:
trueif byte 2 bit 4 is set
-
cardholderVerificationNotSuccessful
Returnstrueif cardholder verification was not successful.- Returns:
trueif byte 3 bit 8 is set
-
unrecognisedCVM
Returnstrueif an unrecognised CVM (Cardholder Verification Method) was encountered.- Returns:
trueif byte 3 bit 7 is set
-
pinTryLimitExceeded
Returnstrueif the PIN try limit has been exceeded.- Returns:
trueif byte 3 bit 6 is set
-
pinRequiredButNoPinPadPresent
Returnstrueif a PIN is required but no PIN pad is present.- Returns:
trueif byte 3 bit 5 is set
-
pinRequiredButNotEntered
Returnstrueif a PIN is required but was not entered.- Returns:
trueif byte 3 bit 4 is set
-
onlinePINEntered
Returnstrueif an online PIN was entered.- Returns:
trueif byte 3 bit 3 is set
-
transactionExceedsFloorLimit
Returnstrueif the transaction amount exceeds the floor limit.- Returns:
trueif byte 4 bit 8 is set
-
lowerConsecutiveOfflineLimitExceeded
Returnstrueif the lower consecutive offline limit was exceeded.- Returns:
trueif byte 4 bit 7 is set
-
upperConsecutiveOfflineLimitExceeded
Returnstrueif the upper consecutive offline limit was exceeded.- Returns:
trueif byte 4 bit 6 is set
-
transactionSelectedRandomlyOnlineProcessing
Returnstrueif the transaction was selected randomly for online processing.- Returns:
trueif byte 4 bit 5 is set
-
merchantForcedTransactionOnline
Returnstrueif the merchant forced the transaction online.- Returns:
trueif byte 4 bit 4 is set
-
defaultTDOLUsed
Returnstrueif the default TDOL (Transaction Data Object List) was used.- Returns:
trueif byte 5 bit 8 is set
-
issuerAuthenticationFailed
Returnstrueif issuer authentication failed.- Returns:
trueif byte 5 bit 7 is set
-
scriptFailedBeforeFinalGenerateAC
Returnstrueif an issuer script failed before the final Generate AC command.- Returns:
trueif byte 5 bit 6 is set
-
scriptFailedAfterFinalGenerateAC
Returnstrueif an issuer script failed after the final Generate AC command.- Returns:
trueif byte 5 bit 5 is set
-
relayResistanceThresholdExceeded
Returnstrueif the relay resistance threshold was exceeded.- Returns:
trueif byte 5 bit 4 is set
-
relayResistanceTimeLimitsExceeded
Returnstrueif the relay resistance time limits were exceeded.- Returns:
trueif byte 5 bit 3 is set
-
relayResistanceProtocolNotSupported
Returnstrueif the relay resistance protocol is not supported.- Returns:
trueif byte 5 bits 2 and 1 are both clear
-
relayResistanceProtocolNotPerformed
Returnstrueif the relay resistance protocol was not performed.- Returns:
trueif byte 5 bit 2 is clear and bit 1 is set
-
relayResistanceProtocolPerformed
Returnstrueif the relay resistance protocol was performed.- Returns:
trueif byte 5 bit 2 is set and bit 1 is clear
-
dump
Dumps a human-readable binary representation of the TVR to the given stream.
-