SpringCard AppleVAS .NET  19.06
Terminal-side implementation of Apple Pass Kit NFC
SpringCard.AppleVas.AppleVasTerminal Class Reference

This object runs the transaction with the Apple VAS-enabled NFC card (i.e. an iPhone or iPad running in card emulation mode) More...

Public Member Functions

 AppleVasTerminal ()
 Create an Apple VAS controller - add merchant(s) using AddConfig.
 
 AppleVasTerminal (AppleVasTerminalConfig terminalConfig)
 Create an Apple VAS controller, providing the complete configuration of the terminal.
 
 AppleVasTerminal (AppleVasConfig merchantConfig)
 Create an Apple VAS controller for the given Merchant.
 
 AppleVasTerminal (List< AppleVasConfig > merchantConfigs)
 Create an Apple VAS controller for more than one Merchant.
 
void AddConfig (AppleVasConfig merchantConfig)
 Add a merchant to the controller.
 
bool DoTransaction (ICardApduTransmitter cardChannel, out AppleVasData data, out AppleVasError error)
 Run the Apple VAS transaction.
 
bool SelectOSE (ICardApduTransmitter cardChannel, out AppleVasError error)
 Send the SelectOSE APDU to the the card, and check that the status word is 9000 and the FCI is OK.
 
bool SelectOSE (ICardApduTransmitter cardChannel)
 Send the SelectOSE APDU to the the card, and check that the status word is 9000 and the FCI is OK.
 
bool GetVasData (ICardApduTransmitter cardChannel, AppleVasConfig merchantConfig, out byte[] rawMessage, out AppleVasError error)
 Send the GetVasData APDU to the the card for the given Merchant config, process the response and extract the raw VAS message. Default Terminal configuration is used.
 
bool GetVasData (ICardApduTransmitter cardChannel, AppleVasTerminalConfig terminalConfig, AppleVasConfig merchantConfig, out byte[] rawMessage, out AppleVasError error)
 Send the GetVasData APDU to the the card for the given Merchant config, process the response and extract the raw VAS message.
 
bool GetVasData (ICardApduTransmitter cardChannel, AppleVasConfig merchantConfig, out byte[] rawMessage)
 Send the GetVasData APDU to the the card for the given Merchant config, process the response and extract the raw VAS message. Default Terminal configuration is used.
 
bool GetVasData (ICardApduTransmitter cardChannel, AppleVasTerminalConfig terminalConfig, AppleVasConfig merchantConfig, out byte[] rawMessage)
 Send the GetVasData APDU to the the card for the given Merchant config, process the response and extract the raw VAS message.
 
AppleVasData GetVasData (ICardApduTransmitter cardChannel, AppleVasConfig merchantConfig, out AppleVasError error)
 Send the GetVasData APDU to the the card for the given Merchant config, process the response and return the decrypted VAS message. Default Terminal configuration is used.
 
AppleVasData GetVasData (ICardApduTransmitter cardChannel, AppleVasTerminalConfig terminalConfig, AppleVasConfig merchantConfig, out AppleVasError error)
 Send the GetVasData APDU to the the card for the given Merchant config, process the response and return the decrypted VAS message.
 

Static Public Member Functions

static CAPDU CreateSelectOSECommand ()
 Generate the SelectOSE command.
 
static bool ProcessSelectOSEResponse (RAPDU response, out AppleVasError error)
 Process the response to the SelectOSE command.
 
static CAPDU CreateGetVasDataCommand (AppleVasConfig merchantConfig)
 Generate the GetVasData command, for the given Merchant config. Default Terminal configuration is used.
 
static CAPDU CreateGetVasDataCommand (AppleVasTerminalConfig terminalConfig, AppleVasConfig merchantConfig)
 Generate the GetVasData command, for the given Merchant config.
 
static bool ExtractVasDataResponse (byte[] responseData, out byte[] rawMessage, out AppleVasError error)
 Retrieve the VAS message from the reponse to the GetVasData command.
 
static bool ProcessGetVasDataResponse (RAPDU response, out byte[] rawMessage, out AppleVasError error)
 Process the response to the GetVasData command and extract the raw VAS message.
 
static AppleVasData ProcessGetVasDataResponse (RAPDU response, AppleVasConfig config, out AppleVasError error)
 Process the response to the GetVasData command.
 
static bool SelfTest (bool throwException=true)
 SelfTest.
 

Detailed Description

This object runs the transaction with the Apple VAS-enabled NFC card (i.e. an iPhone or iPad running in card emulation mode)


The documentation for this class was generated from the following file: