GetCertificates Method
GetCertificates(KeyReference)
Retrieves the certificates associated with the given keyReference
.
C#
public IReadOnlyList<X509Certificate2> GetCertificates(KeyReference keyReference)
Parameters
Type | Name | Description |
---|---|---|
KeyReference | keyReference | The key reference for which the certificates should be retrieved. |
Returns
System.Collections.Generic.IReadOnlyList<System.Security.Cryptography.X509Certificates.X509Certificate2>
A list of X.509 certificates associated with the key reference. The leaf certificate is the last certificate in the list
Exceptions
Type | Condition |
---|---|
SecureChannelException | Thrown when there was an SCP error, described in the exception message. |