public class CertPinManager extends Object
| Constructor and Description |
|---|
CertPinManager(String path,
TrustedCertificateStore store)
Test only
|
CertPinManager(TrustedCertificateStore store) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isChainValid(String hostname,
List<X509Certificate> chain)
Given a
hostname and a chain this verifies that the
certificate chain includes certificates from the pinned list iff the
hostname is on the list of sites that should be pinned. |
public CertPinManager(TrustedCertificateStore store) throws org.conscrypt.PinManagerException
org.conscrypt.PinManagerExceptionpublic CertPinManager(String path, TrustedCertificateStore store) throws org.conscrypt.PinManagerException
org.conscrypt.PinManagerExceptionpublic boolean isChainValid(String hostname, List<X509Certificate> chain) throws org.conscrypt.PinManagerException
hostname and a chain this verifies that the
certificate chain includes certificates from the pinned list iff the
hostname is on the list of sites that should be pinned.
If chain doesn't include those certificates and enforcing
mode is enabled, then this method returns false and the
certificate chain validation should fail.
org.conscrypt.PinManagerException