Package org.conscrypt
Class PinListEntry
- java.lang.Object
-
- org.conscrypt.PinListEntry
-
public class PinListEntry extends Object
This class represents a single entry in the pin file.
-
-
Constructor Summary
Constructors Constructor Description PinListEntry(String entry, TrustedCertificateStore store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCommonName()booleangetEnforcing()booleanisChainValid(List<X509Certificate> chain)Checks the given chain against the pin list corresponding to this entry.
-
-
-
Constructor Detail
-
PinListEntry
public PinListEntry(String entry, TrustedCertificateStore store) throws PinEntryException
- Throws:
PinEntryException
-
-
Method Detail
-
getCommonName
public String getCommonName()
-
getEnforcing
public boolean getEnforcing()
-
isChainValid
public boolean isChainValid(List<X509Certificate> chain)
Checks the given chain against the pin list corresponding to this entry.If enforcing is on and the given
chaindoes not include the expected pinned certificate, this will returnfalseindicating the chain is not valid unless thechainchains up to an user-installed CA cert. Otherwise this will returntrueindicating thechainis valid.
-
-