Constructor
new CertificateTrustPolicy()
A generic interface for implementing a particular certificate verification
scheme, such as constructing and verifying
certificate chains.
- Source:
Methods
-
getValidCertificate(selector, certificates, crls) → {Promise}
-
Returns a certificate, known to be valid (according to criteria dependent on the verification scheme), which has the given selector, certificate and CRL lists to implement a particular certificate verification scheme, such a forming valid certificate chains.
Second and third argument to this method may be undefined, and such a case must be treated exactly the same as if the particular argument was an empty array.Parameters:
Name Type Description selectorGostCert.CertificateSelector Certificate selector certificatesArray.<GostCert.X509> Certificates crlsArray.<GostCert.CRL> CLRs - Source:
Returns:
Promise to return valid GostCert.X509- Type
- Promise