Home
last modified time | relevance | path

Searched refs:pins (Results 1 – 7 of 7) 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.java142 Set<Pin> pins = new ArraySet<>(); in parsePinSet() local
146 pins.add(parsePin(parser)); in parsePinSet()
151 return new PinSet(pins, expirationTimestampMilis); in parsePinSet()
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DNetworkSecurityConfigTests.java145 ArraySet<Pin> pins = new ArraySet<Pin>(); in testBadPin() local
146 pins.add(new Pin("SHA-256", new byte[0])); in testBadPin()
148 .setPinSet(new PinSet(pins, Long.MAX_VALUE)) in testBadPin()
163 ArraySet<Pin> pins = new ArraySet<Pin>(); in testGoodPin() local
164 pins.add(new Pin("SHA-256", G2_SPKI_SHA256)); in testGoodPin()
166 .setPinSet(new PinSet(pins, Long.MAX_VALUE)) in testGoodPin()
182 ArraySet<Pin> pins = new ArraySet<Pin>(); in testOverridePins() local
183 pins.add(new Pin("SHA-256", new byte[0])); in testOverridePins()
185 .setPinSet(new PinSet(pins, Long.MAX_VALUE)) in testOverridePins()
249 ArraySet<Pin> pins = new ArraySet<Pin>(); in testWithUrlConnection() local
[all …]
DXmlConfigTests.java59 assertTrue(pinSet.pins.isEmpty()); in testEmptyConfigFile()
79 assertTrue(pinSet.pins.isEmpty()); in testEmptyAnchors()
98 assertTrue(pinSet.pins.isEmpty()); in testBasicDomainConfig()
105 assertTrue(pinSet.pins.isEmpty()); in testBasicDomainConfig()
131 assertFalse(pinSet.pins.isEmpty()); in testBasicPinning()
147 assertFalse(pinSet.pins.isEmpty()); in testExpiredPin()
162 assertFalse(pinSet.pins.isEmpty()); in testOverridesPins()
177 assertFalse(pinSet.pins.isEmpty()); in testBadPin()
195 assertTrue(pinSet.pins.isEmpty()); in testMultipleDomains()
289 MoreAsserts.assertEmpty(parent.getPins().pins); in testNestedDomainConfigs()
[all …]
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt62519 Landroid/security/net/config/PinSet;->pins:Ljava/util/Set;