StoreAllowlist Method
StoreAllowlist(KeyReference, IReadOnlyCollection<String>)
Stores an allowlist of certificate serial numbers for a specified key reference using the GlobalPlatform STORE DATA command.
C#
public void StoreAllowlist(KeyReference keyReference, IReadOnlyCollection<string> serials)
Parameters
Type | Name | Description |
---|---|---|
KeyReference | keyReference | A reference to the key for which the allowlist will be stored. |
System.Collections.Generic.IReadOnlyCollection<System.String> | serials | The list of certificate serial numbers (in hexadecimal string format) to be stored in the allowlist for the given KeyReference. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when a serial number cannot be encoded properly. |
SecureChannelException | Thrown when there was an SCP error, described in the exception message. |
Remarks
This method requires off-card entity verification. If an allowlist is not stored, any certificate signed by the CA can be used.
See GlobalPlatform Technology Card Specification v2.3.1 §11 APDU Command Reference for more information.