Package org.conscrypt

Class PinListEntry


  • public class PinListEntry
    extends Object
    This class represents a single entry in the pin file.
    • 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 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.