Searched defs:pin (Results 1 - 2 of 2) sorted by relevance

/libcore/crypto/src/main/java/org/conscrypt/
H A DPinListEntry.java31 * This class represents a single entry in the pin file.
69 // entry must have a CN, an enforcement value, and at least one pin
71 throw new PinEntryException("Received malformed pin entry");
91 * Checks the given chain against the pin list corresponding to this entry.
93 * If the pin list does not contain the required certs and the enforcing field is true then
120 for (String pin : pins) {
121 validatePin(pin);
126 private static void validatePin(String pin) { argument
128 if (pin.length() != 128) {
133 new BigInteger(pin, 1
[all...]
/libcore/crypto/src/test/java/org/conscrypt/
H A DTrustManagerImplTest.java173 private TrustManagerImpl trustManager(X509Certificate ca, String hostname, X509Certificate pin) argument
175 // build the cert pin manager
176 CertPinManager cm = certManager(hostname, pin);
183 private CertPinManager certManager(String hostname, X509Certificate pin) throws Exception { argument
185 if (pin != null) {
186 pinString = hostname + "=true|" + getFingerprint(pin);

Completed in 197 milliseconds