public boolean chainIsNotPinned(List<X509Certificate> chain){
  for (  X509Certificate cert : chain) {
    String fingerprint=getFingerprint(cert);
    if (pinnedFingerprints.contains(fingerprint)) {
      return false;
    }
  }
  logPinFailure(chain);
  return enforcing;
}

public boolean chainIsNotPinned ( List < X509Certificate > chain ) { for ( X509Certificate cert : chain ) { String fingerprint = getFingerprint ( cert ) ; if ( pinnedFingerprints . contains ( fingerprint ) ) { return false ; } } logPinFailure ( chain ) ; return enforcing ; }
checks the given chain against the pin list corresponding to this entry . if the pin list does not contain the required certs and the enforcing field is true then this returns true , indicating a verification error . otherwise , it returns false and verification should proceed .
