Searched refs:Pin (Results 1 – 5 of 5) sorted by relevance
22 public final class Pin { class28 public Pin(String digestAlgorithm, byte[] digest) { in Pin() method in Pin63 if (!(obj instanceof Pin)) { in equals()66 Pin other = (Pin) obj; in equals()
26 new PinSet(Collections.<Pin>emptySet(), Long.MAX_VALUE);28 public final Set<Pin> pins;30 public PinSet(Set<Pin> pins, long expirationTime) { in PinSet()41 for (Pin pin : pins) { in getPinAlgorithms()
104 private Pin parsePin(XmlResourceParser parser) in parsePin()107 if (!Pin.isSupportedDigestAlgorithm(digestAlgorithm)) { in parsePin()121 int expectedLength = Pin.getDigestLength(digestAlgorithm); in parsePin()130 return new Pin(digestAlgorithm, decodedDigest); in parsePin()152 Set<Pin> pins = new ArraySet<>(); in parsePinSet()
141 if (pinSet.pins.contains(new Pin(algorithm, md.digest(encodedSPKI)))) { in checkPins()
144 ArraySet<Pin> pins = new ArraySet<Pin>(); in testBadPin()145 pins.add(new Pin("SHA-256", new byte[0])); in testBadPin()162 ArraySet<Pin> pins = new ArraySet<Pin>(); in testGoodPin()163 pins.add(new Pin("SHA-256", G2_SPKI_SHA256)); in testGoodPin()181 ArraySet<Pin> pins = new ArraySet<Pin>(); in testOverridePins()182 pins.add(new Pin("SHA-256", new byte[0])); in testOverridePins()247 ArraySet<Pin> pins = new ArraySet<Pin>(); in testWithUrlConnection()248 pins.add(new Pin("SHA-256", G2_SPKI_SHA256)); in testWithUrlConnection()