public class PinListEntry extends Object
| Constructor and Description |
|---|
PinListEntry(String entry,
TrustedCertificateStore store) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCommonName() |
boolean |
getEnforcing() |
boolean |
isChainValid(List<X509Certificate> chain)
Checks the given chain against the pin list corresponding to this entry.
|
public PinListEntry(String entry, TrustedCertificateStore store) throws PinEntryException
PinEntryExceptionpublic String getCommonName()
public boolean getEnforcing()
public boolean isChainValid(List<X509Certificate> chain)
If enforcing is on and the given chain does not include the
expected pinned certificate, this will return false indicating
the chain is not valid unless the chain chains up to an user-installed
CA cert. Otherwise this will return true indicating the chain
is valid.