set Contact Kernel App Data
Loads application-specific configuration data into the contact EMV kernel.
This method configures the contact EMV kernel with application-specific parameters and settings contained within a TypeParameterModal object. The configuration data includes Application Identifier (AID) information, transaction limits, terminal capabilities, and other EMV parameters required for contact chip card transaction processing.
Prerequisites:
EMV kernel environment must be initialized via initializeKernelEnvironment
This method is part of the contact application data loading sequence
Usage sequence: This method is part of a multi-step contact application configuration process:
Call this method one or more times to load application configurations
Call endContactKernelAppDataLoad to finalize and commit all loaded configurations
Thread safety: This method should be called from a single thread during the application data loading sequence to ensure data consistency and prevent configuration corruption.
Exceptions: This function MUST NOT throw any exception. Any error must be indicated through NexusRet Any unexpected error must be mapped as NexusRet.INTERR
Implementation notes:
Validate configuration data format and completeness before processing
Log detailed information about each application configuration loaded
Ensure proper error handling for malformed or invalid configuration data
Consider implementing validation for required EMV parameters
Return
NexusRet indicating the configuration loading result:
NexusRet.OK: Application configuration loaded successfully into the kernel
NexusRet.INTERR: Internal error during configuration loading
Other values: Specific configuration errors as defined by the implementation
Example usage:
val contactAppConfig = TypeParameterModal(
aid = "A0000000041010",
// ... other configuration parameters
)
val result = emvPort.setContactKernelAppData(contactAppConfig)
if (result == NexusRet.OK) {
// Configuration loaded successfully
println("Contact application configuration loaded successfully")
} else {
// Handle configuration loading failure
println("Failed to load contact application configuration: $result")
}
// After loading all configurations, finalize the process
emvPort.endContactKernelAppDataLoad()Parameters
A TypeParameterModal object containing the complete application configuration data to be loaded into the contact EMV kernel. This includes the Application Identifier (AID), associated EMV parameters, transaction limits, and other application-specific settings required for contact chip card processing.