Show / Hide Table of Contents

OffCardCertificateUrl Property

OffCardCertificateUrl

The URL where the Off-Card Certificates can be found. If there are no On-Card or Off-Card Certs, it can only be set to null.

C#
public Uri? OffCardCertificateUrl { get; set; }

Property Value

Type Description
Uri

Remarks

This class will use the AbsoluteUri property of the Uri class. Furthermore, it will "convert" it to bytes by using the UTF8 encoding. That is, you will build the Uri object, and when this class builds the encoded KeyHistory, it will extract the AbsoluteUri property and convert it into a byte array made up of the UTF8 encoding for the off-card cert URL portion.

The PIV standard specifies that this value be made up of 118 bytes or fewer. If the UTF8 encoding of the AbsoluteUri is greater than 118, this class will throw an exception.

If this property is set to something other than null, and the OnCardCertificates and OffCardCertificates properties are both zero, a call to Encode will throw an exception.
In this article
Back to top Generated by DocFX