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

/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
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/luni/src/test/java/org/apache/harmony/xnet/provider/jsse/
H A DTrustManagerImplTest.java157 private TrustManagerImpl trustManager(X509Certificate ca, String hostname, X509Certificate pin) argument
159 // build the cert pin manager
160 CertPinManager cm = certManager(hostname, pin);
167 private CertPinManager certManager(String hostname, X509Certificate pin) throws Exception { argument
169 if (pin != null) {
170 pinString = hostname + "=true|" + getFingerprint(pin);

Completed in 288 milliseconds