Constructor
new CertStore(certificates, crls)
A class for retrieving Certificates and CRLs from a repository.
Once the CertStore has been created, it can be used to retrieve Certificates and CRLs by calling its getCertificates and getCRLs methods. Unlike a KeyStore, which provides access to a cache of private keys and trusted certificates, a CertStore is designed to provide access to a potentially vast repository of untrusted certificates and CRLs.
Once the CertStore has been created, it can be used to retrieve Certificates and CRLs by calling its getCertificates and getCRLs methods. Unlike a KeyStore, which provides access to a cache of private keys and trusted certificates, a CertStore is designed to provide access to a potentially vast repository of untrusted certificates and CRLs.
Parameters:
| Name | Type | Description |
|---|---|---|
certificates |
Array.<GostCert.X509> | Certificates |
crls |
Array.<GostCert.CRL> | CLRs |
- Source:
Methods
-
getCertificates(selector) → {Array.<GostCert.X509>}
-
Returns a Array of Certificates that match the specified selector.
Parameters:
Name Type Description selectorGostCert.CertSelector Certificate filter selector - Source:
Returns:
Selected certificates- Type
- Array.<GostCert.X509>
-
getCRLs(selector) → {Array.<GostCert.CRL>}
-
Returns a Collection of CRLs that match the specified selector.
Parameters:
Name Type Description selectorGostCert.CertSelector CRL filter selector - Source:
Returns:
selected CRLs- Type
- Array.<GostCert.CRL>
-
load(store) → {GostCert.CertStore}
-
Loads this CertStore from the given PKCS#7 formated input stream.
Parameters:
Name Type Description storeFormatedData | GostASN1.ContentInfo The input stream from which the certstore is loaded - Source:
Returns:
Self object after store loaded- Type
- GostCert.CertStore
-
store() → {GostASN1.ContentInfo}
-
Stores this CertStore to the given output stream in PKCS#7 format.
- Source:
Returns:
PKCS#7 content info with certificates and crls from CertStore- Type
- GostASN1.ContentInfo