Show / Hide Table of Contents

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.

IReadOnlyCollection<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
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.

In this article
Back to top Generated by DocFX