Home | History | Annotate | Download | only in okhttp

Lines Matching defs:pins

38  * <p>This class currently pins a certificate's Subject Public Key Info as
39 * described on <a href="http://goo.gl/AIx3e5">Adam Langley's Weblog</a>. Pins
114 * direct and wildcard pins will be used. For example: {@code *.example.com} pinned
153 Set<ByteString> pins = findMatchingPins(hostname);
155 if (pins == null) return;
159 if (pins.contains(sha1(x509Certificate))) return; // Success!
172 for (ByteString pin : pins) {
185 * Returns list of matching certificates' pins for the hostname
206 Set<ByteString> pins = new LinkedHashSet<>();
207 pins.addAll(directPins);
208 pins.addAll(wildcardPins);
209 return pins;
238 * Pins certificates for {@code hostname}.
241 * @param pins SHA-1 hashes. Each pin is a SHA-1 hash of a
245 public Builder add(String hostname, String... pins) {
254 for (String pin : pins) {
256 throw new IllegalArgumentException("pins must start with 'sha1/': " + pin);
260 throw new IllegalArgumentException("pins must be base64: " + pin);