SpringCard PC/SC Helpers for .NET  18.10.10
High-level access to a few current cards and to advanced coupler features
SpringCard.PCSC.CardHelpers.Apple.VAS.AppleVasMerchant Class Reference

This object encapsulates the Apple VAS merchant's data (namely the ID and the private keys) More...

Public Member Functions

 AppleVasMerchant (string Name)
 Create a new Merchant object for the given Merchant name (Merchant ID = SHA256 of Merchant name)
 
 AppleVasMerchant (byte[] Id)
 Create a new Merchant object for the given Merchant ID.
 
void ClearPrivateKeys ()
 Reset the Merchant's keyset.
 
bool AddPrivateKey (byte[] encoded)
 Add a new private key to the Merchant's keyset. The function returns false if the private key is invalid.
 

Static Public Member Functions

static byte [] ComputeId (string Name)
 Compute a Merchant ID from a Merchant name (this is the SHA256 function)
 
static bool ValidatePrivateKey (byte[] encoded)
 Verify that a private key is valid.
 
static bool ValidatePrivateKey (byte[] encoded, out uint keyId)
 Verify that a private key is valid, and return its ID.
 

Public Attributes

string Url
 The Merchant URL.
 

Properties

byte [] Id [get]
 The Merchant ID.
 
uint [] PrivateKeyIds [get]
 List the IDs of the private keys that have been added.
 

Detailed Description

This object encapsulates the Apple VAS merchant's data (namely the ID and the private keys)


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