Package org.conscrypt
Class TrustedCertificateIndex
- java.lang.Object
-
- org.conscrypt.TrustedCertificateIndex
-
public final class TrustedCertificateIndex extends Object
IndexesTrustAnchorinstances so they can be found in O(1) time instead of O(N).
-
-
Constructor Summary
Constructors Constructor Description TrustedCertificateIndex()TrustedCertificateIndex(Set<TrustAnchor> anchors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TrustAnchorfindByIssuerAndSignature(X509Certificate cert)TrustAnchorfindBySubjectAndPublicKey(X509Certificate cert)voidindex(TrustAnchor anchor)TrustAnchorindex(X509Certificate cert)voidreset()voidreset(Set<TrustAnchor> anchors)
-
-
-
Constructor Detail
-
TrustedCertificateIndex
public TrustedCertificateIndex()
-
TrustedCertificateIndex
public TrustedCertificateIndex(Set<TrustAnchor> anchors)
-
-
Method Detail
-
index
public TrustAnchor index(X509Certificate cert)
-
index
public void index(TrustAnchor anchor)
-
reset
public void reset()
-
reset
public void reset(Set<TrustAnchor> anchors)
-
findByIssuerAndSignature
public TrustAnchor findByIssuerAndSignature(X509Certificate cert)
-
findBySubjectAndPublicKey
public TrustAnchor findBySubjectAndPublicKey(X509Certificate cert)
-
-