new DynamicTrustAnchorGroup(certificateContainer, id, path, refreshPeriod, isDirectory)
The DynamicTrustAnchorGroup class extends TrustAnchorGroup to implement a
dynamic trust anchor group.
Create a DynamicTrustAnchorGroup to use an existing container.
Parameters:
Name | Type | Description |
---|---|---|
certificateContainer |
CertificateContainer | The existing certificate container which implements the CertificateContainer interface. |
id |
string | The group ID. |
path |
string | The file path for trust anchor(s), which could be a directory or a file. If it is a directory, all the certificates in the directory will be loaded. |
refreshPeriod |
number | The refresh time in milliseconds for the anchors under path. This must be positive. |
isDirectory |
boolean | If true, then path is a directory. If false, it is a single file. |
Throws:
Error If refreshPeriod is not positive.
Methods
loadCertificate_(file, oldAnchorNameUris)
Parameters:
Name | Type | Description |
---|---|---|
file |
string | |
oldAnchorNameUris |
object | The keys are the set of anchor name URIs, and each value is true. |
refresh()
Request a certificate refresh.