Interface CryptogramDataBuilder

All Known Implementing Classes:
CVN10DataBuilder, CVN18DataBuilder, CVN22DataBuilder, CVNCPADataBuilder, CVNMCDataBuilder

public interface CryptogramDataBuilder
Interface that provides methods to build strings for ARPC and ARQC generation
  • Method Details

    • minimumSetOfDataElement

      Method that selects the minimum set of data elements recommended for the generation of application cryptograms described in EMV Book 2 sec 8.1.1
      Parameters:
      data - ICC data
      Returns:
      Minimum Set of Data Elements for Application Cryptogram Generation
    • getDefaultARPCRequest

      String getDefaultARPCRequest(boolean approved)
      Method that returns default issuer response data (ARC or CSU)
      Parameters:
      approved - true if transaction was approved, otherwise false
      Returns:
      String representing default issuer response data that will be used to generate the ARPC
    • buildARQCRequest

      Select necessary data elements and create the string used to generate the ARQC with no padding

      Parameters:
      data - ICC data received
      iad - Issuer application Data
      Returns:
      String used to generate the ARQC
    • buildARQCRequest_padded

      Select necessary data elements and create the string used to generate the ARQC with padding

      Parameters:
      data - ICC data received
      iad - Issuer application Data
      Returns:
      String used to generate the ARQC
    • getPaddingMethod

      Defines how to pad the request data when generating the ARQC.
      Returns:
      PaddingMethod this builder uses