Home
last modified time | relevance | path

Searched refs:pins (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/android/security/net/config/
DPinSet.java28 public final Set<Pin> pins; field in PinSet
30 public PinSet(Set<Pin> pins, long expirationTime) { in PinSet() argument
31 if (pins == null) { in PinSet()
34 this.pins = pins; in PinSet()
41 for (Pin pin : pins) { in getPinAlgorithms()
DNetworkSecurityTrustManager.java120 if (pinSet.pins.isEmpty() in checkPins()
141 if (pinSet.pins.contains(new Pin(algorithm, md.digest(encodedSPKI)))) { in checkPins()
DNetworkSecurityConfig.java52 PinSet pins, List<CertificatesEntryRef> certificatesEntryRefs) { in NetworkSecurityConfig() argument
55 mPins = pins; in NetworkSecurityConfig()
DXmlConfigSource.java160 Set<Pin> pins = new ArraySet<>(); in parsePinSet() local
164 pins.add(parsePin(parser)); in parsePinSet()
169 return new PinSet(pins, expirationTimestampMilis); in parsePinSet()
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DNetworkSecurityConfigTests.java144 ArraySet<Pin> pins = new ArraySet<Pin>(); in testBadPin() local
145 pins.add(new Pin("SHA-256", new byte[0])); in testBadPin()
147 .setPinSet(new PinSet(pins, Long.MAX_VALUE)) in testBadPin()
162 ArraySet<Pin> pins = new ArraySet<Pin>(); in testGoodPin() local
163 pins.add(new Pin("SHA-256", G2_SPKI_SHA256)); in testGoodPin()
165 .setPinSet(new PinSet(pins, Long.MAX_VALUE)) in testGoodPin()
181 ArraySet<Pin> pins = new ArraySet<Pin>(); in testOverridePins() local
182 pins.add(new Pin("SHA-256", new byte[0])); in testOverridePins()
184 .setPinSet(new PinSet(pins, Long.MAX_VALUE)) in testOverridePins()
247 ArraySet<Pin> pins = new ArraySet<Pin>(); in testWithUrlConnection() local
[all …]
DXmlConfigTests.java57 assertTrue(pinSet.pins.isEmpty()); in testEmptyConfigFile()
76 assertTrue(pinSet.pins.isEmpty()); in testEmptyAnchors()
94 assertTrue(pinSet.pins.isEmpty()); in testBasicDomainConfig()
101 assertTrue(pinSet.pins.isEmpty()); in testBasicDomainConfig()
126 assertFalse(pinSet.pins.isEmpty()); in testBasicPinning()
141 assertFalse(pinSet.pins.isEmpty()); in testExpiredPin()
155 assertFalse(pinSet.pins.isEmpty()); in testOverridesPins()
169 assertFalse(pinSet.pins.isEmpty()); in testBadPin()
186 assertTrue(pinSet.pins.isEmpty()); in testMultipleDomains()
274 MoreAsserts.assertEmpty(parent.getPins().pins); in testNestedDomainConfigs()
[all …]