Package org.conscrypt

Interface CertPinManager


  • @Internal
    public interface CertPinManager
    Interface for classes that implement certificate pinning for use in TrustManagerImpl.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void checkChainPinning​(java.lang.String hostname, java.util.List<java.security.cert.X509Certificate> chain)
      Given a hostname and a chain this verifies that the certificate chain includes pinned certificates if pinning is requested for hostname.
    • Method Detail

      • checkChainPinning

        void checkChainPinning​(java.lang.String hostname,
                               java.util.List<java.security.cert.X509Certificate> chain)
                        throws java.security.cert.CertificateException
        Given a hostname and a chain this verifies that the certificate chain includes pinned certificates if pinning is requested for hostname.
        Throws:
        java.security.cert.CertificateException