Table of Contents

Class RTCCertificateStats

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The RTCCertificateStats dictionary of the WebRTC API is used to report information about a certificate used by an RTCDtlsTransport and its underlying RTCIceTransport.

[ToObject]
public class RTCCertificateStats : RTCStats
Inheritance
RTCCertificateStats
Inherited Members

Remarks

The report can be obtained by iterating the RTCStatsReport returned by GetStats(MediaStreamTrack?) until you find an entry with the type of certificate.

-RTCStatsReport
-RTCCertificate

See also on MDN

Constructors

RTCCertificateStats()

public RTCCertificateStats()

Fields

Base64Certificate

The base64Certificate property of the RTCCertificateStats dictionary is a string containing the base-64 representation of the DER-encoded certificate.

[Value("base64Certificate")]
public required string Base64Certificate

Field Value

string

A Base64 representation of the DER-encoded certificate.

Remarks

This is essentially an encoding of the original certificate as a string that can safely serialized and deserialized when sent over an IP network.

See also on MDN

Fingerprint

The fingerprint property of the RTCCertificateStats dictionary is a string containing the fingerprint value of the associated RTCCertificate.

[Value("fingerprint")]
public required string Fingerprint

Field Value

string

A string containing the fingerprint of the associated certificate.This is a lowercase hex string, calculated using the hash function specified in the FingerprintAlgorithm property.
The format is more precisely defined in RFC4572, Section 5.

Remarks

FingerprintAlgorithm

The fingerprintAlgorithm property of the RTCCertificateStats dictionary is a string containing the name of the hash function used to generate the Fingerprint value in the associated RTCCertificate.

[Value("fingerprintAlgorithm")]
public required string FingerprintAlgorithm

Field Value

string

A string containing the name of the hash function used to create the fingerprint of the associated certificate.Allowed values are: "sha-1", "sha-224", "sha-256", "sha-384", "sha-512", "md5", "md2". <!-- from RFC4572, Section 5 -->

Remarks

IssuerCertificateId

[Value("issuerCertificateId")]
public string IssuerCertificateId

Field Value

string