public final class TrustedCertificateIndex extends Object
TrustAnchor instances so they can be found in O(1)
time instead of O(N).| Constructor and Description |
|---|
TrustedCertificateIndex() |
TrustedCertificateIndex(Set<TrustAnchor> anchors) |
| Modifier and Type | Method and Description |
|---|---|
TrustAnchor |
findByIssuerAndSignature(X509Certificate cert) |
TrustAnchor |
findBySubjectAndPublicKey(X509Certificate cert) |
void |
index(TrustAnchor anchor) |
TrustAnchor |
index(X509Certificate cert) |
void |
reset() |
void |
reset(Set<TrustAnchor> anchors) |
public TrustedCertificateIndex()
public TrustedCertificateIndex(Set<TrustAnchor> anchors)
public TrustAnchor index(X509Certificate cert)
public void index(TrustAnchor anchor)
public void reset()
public void reset(Set<TrustAnchor> anchors)
public TrustAnchor findByIssuerAndSignature(X509Certificate cert)
public TrustAnchor findBySubjectAndPublicKey(X509Certificate cert)