X509CertificateTrustListEntry Constructor (X509Certificate2, Oid) |
Initializes a new instance of X509CertificateTrustListEntry class using an existing instance of X.509 certificate and hashing
algorithm used to compute the hash.
Namespace:
SysadminsLV.PKI.Cryptography.X509Certificates
Assembly:
SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax public X509CertificateTrustListEntry(
X509Certificate2 certificate,
Oid hashAlgorithm = null
)
Public Sub New (
certificate As X509Certificate2,
Optional hashAlgorithm As Oid = Nothing
)
public:
X509CertificateTrustListEntry(
X509Certificate2^ certificate,
Oid^ hashAlgorithm = nullptr
)
new :
certificate : X509Certificate2 *
?hashAlgorithm : Oid
(* Defaults:
let _hashAlgorithm = defaultArg hashAlgorithm null
*)
-> X509CertificateTrustListEntry
Parameters
- certificate
- Type: System.Security.Cryptography.X509CertificatesX509Certificate2
An instance of certificate associated with the current CTL entry.
- hashAlgorithm (Optional)
- Type: System.Security.CryptographyOid
Specifies the hashing algorithm used to calculate the thumbprint. This parameter is optional. If not specified, or invalid hash
algorithm is specified, default certificate hashing algorithm is used.
Exceptions Exception | Condition |
---|
ArgumentNullException | certificate parameter is null. |
See Also