Home
last modified time | relevance | path

Searched refs:NetworkSecurityConfig (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DNetworkSecurityConfigTests.java113 private NetworkSecurityConfig getEmptyConfig() { in getEmptyConfig()
114 return new NetworkSecurityConfig.Builder().build(); in getEmptyConfig()
117 private NetworkSecurityConfig getSystemStoreConfig() { in getSystemStoreConfig()
118 return new NetworkSecurityConfig.Builder() in getSystemStoreConfig()
125 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap in testEmptyConfig()
126 = new ArraySet<Pair<Domain, NetworkSecurityConfig>>(); in testEmptyConfig()
134 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap in testEmptyPerNetworkSecurityConfig()
135 = new ArraySet<Pair<Domain, NetworkSecurityConfig>>(); in testEmptyPerNetworkSecurityConfig()
136 domainMap.add(new Pair<Domain, NetworkSecurityConfig>( in testEmptyPerNetworkSecurityConfig()
138 NetworkSecurityConfig defaultConfig = getSystemStoreConfig(); in testEmptyPerNetworkSecurityConfig()
[all …]
DTestConfigSource.java24 private final Set<Pair<Domain, NetworkSecurityConfig>> mConfigs;
25 private final NetworkSecurityConfig mDefaultConfig;
26 public TestConfigSource(Set<Pair<Domain, NetworkSecurityConfig>> configs, in TestConfigSource()
27 NetworkSecurityConfig defaultConfig) { in TestConfigSource()
32 public Set<Pair<Domain, NetworkSecurityConfig>> getPerDomainConfigs() { in getPerDomainConfigs()
36 public NetworkSecurityConfig getDefaultConfig() { in getDefaultConfig()
DXmlConfigTests.java52 NetworkSecurityConfig config = appConfig.getConfigForHostname(""); in testEmptyConfigFile()
72 NetworkSecurityConfig config = appConfig.getConfigForHostname(""); in testEmptyAnchors()
91 NetworkSecurityConfig config = appConfig.getConfigForHostname(""); in testBasicDomainConfig()
129 NetworkSecurityConfig config = appConfig.getConfigForHostname("android.com"); in testBasicPinning()
145 NetworkSecurityConfig config = appConfig.getConfigForHostname("android.com"); in testExpiredPin()
160 NetworkSecurityConfig config = appConfig.getConfigForHostname("android.com"); in testOverridesPins()
175 NetworkSecurityConfig config = appConfig.getConfigForHostname("android.com"); in testBadPin()
190 NetworkSecurityConfig config = appConfig.getConfigForHostname("android.com"); in testMultipleDomains()
197 NetworkSecurityConfig other = appConfig.getConfigForHostname("google.com"); in testMultipleDomains()
213 NetworkSecurityConfig config = appConfig.getConfigForHostname("android.com"); in testMultipleDomainConfigs()
[all …]
/frameworks/base/core/java/android/security/net/config/
DApplicationConfig.java37 private Set<Pair<Domain, NetworkSecurityConfig>> mConfigs;
38 private NetworkSecurityConfig mDefaultConfig;
70 public NetworkSecurityConfig getConfigForHostname(String hostname) { in getConfigForHostname()
88 Pair<Domain, NetworkSecurityConfig> bestMatch = null; in getConfigForHostname()
89 for (Pair<Domain, NetworkSecurityConfig> entry : mConfigs) { in getConfigForHostname()
91 NetworkSecurityConfig config = entry.second; in getConfigForHostname()
132 for (Pair<Domain, NetworkSecurityConfig> entry : mConfigs) { in isCleartextTrafficPermitted()
159 Set<NetworkSecurityConfig> updatedConfigs = in handleTrustStorageUpdate()
160 new HashSet<NetworkSecurityConfig>(mConfigs.size()); in handleTrustStorageUpdate()
161 for (Pair<Domain, NetworkSecurityConfig> entry : mConfigs) { in handleTrustStorageUpdate()
DXmlConfigSource.java42 private NetworkSecurityConfig mDefaultConfig;
43 private Set<Pair<Domain, NetworkSecurityConfig>> mDomainMap;
54 public Set<Pair<Domain, NetworkSecurityConfig>> getPerDomainConfigs() { in getPerDomainConfigs()
59 public NetworkSecurityConfig getDefaultConfig() { in getDefaultConfig()
216 private List<Pair<NetworkSecurityConfig.Builder, Set<Domain>>> parseConfigEntry( in parseConfigEntry()
218 NetworkSecurityConfig.Builder parentBuilder, int configType) in parseConfigEntry()
220 List<Pair<NetworkSecurityConfig.Builder, Set<Domain>>> builders = new ArrayList<>(); in parseConfigEntry()
221 NetworkSecurityConfig.Builder builder = new NetworkSecurityConfig.Builder(); in parseConfigEntry()
239 NetworkSecurityConfig.DEFAULT_HSTS_ENFORCED)); in parseConfigEntry()
243 NetworkSecurityConfig.DEFAULT_CLEARTEXT_TRAFFIC_PERMITTED)); in parseConfigEntry()
[all …]
DRootTrustManager.java55 NetworkSecurityConfig config = mConfig.getConfigForHostname(""); in checkClientTrusted()
64 NetworkSecurityConfig config = mConfig.getConfigForHostname(""); in checkClientTrusted()
73 NetworkSecurityConfig config = mConfig.getConfigForHostname(""); in checkClientTrusted()
87 NetworkSecurityConfig config = mConfig.getConfigForHostname(host); in checkServerTrusted()
103 NetworkSecurityConfig config = mConfig.getConfigForHostname(host); in checkServerTrusted()
115 NetworkSecurityConfig config = mConfig.getConfigForHostname(""); in checkServerTrusted()
130 NetworkSecurityConfig config = mConfig.getConfigForHostname(hostname); in checkServerTrusted()
139 NetworkSecurityConfig config = mConfig.getConfigForHostname(""); in getAcceptedIssuers()
DManifestConfigSource.java44 public Set<Pair<Domain, NetworkSecurityConfig>> getPerDomainConfigs() { in getPerDomainConfigs()
49 public NetworkSecurityConfig getDefaultConfig() { in getDefaultConfig()
88 private final NetworkSecurityConfig mDefaultConfig;
91 mDefaultConfig = NetworkSecurityConfig.getDefaultBuilder(info)
97 public NetworkSecurityConfig getDefaultConfig() {
102 public Set<Pair<Domain, NetworkSecurityConfig>> getPerDomainConfigs() {
DKeyStoreConfigSource.java29 private final NetworkSecurityConfig mConfig;
32 mConfig = new NetworkSecurityConfig.Builder() in KeyStoreConfigSource()
40 public Set<Pair<Domain, NetworkSecurityConfig>> getPerDomainConfigs() { in getPerDomainConfigs()
45 public NetworkSecurityConfig getDefaultConfig() { in getDefaultConfig()
DConfigSource.java24 Set<Pair<Domain, NetworkSecurityConfig>> getPerDomainConfigs(); in getPerDomainConfigs()
25 NetworkSecurityConfig getDefaultConfig(); in getDefaultConfig()
DNetworkSecurityConfig.java36 public final class NetworkSecurityConfig { class
51 private NetworkSecurityConfig(boolean cleartextTrafficPermitted, boolean hstsEnforced, in NetworkSecurityConfig() method in NetworkSecurityConfig
316 public NetworkSecurityConfig build() {
321 return new NetworkSecurityConfig(cleartextPermitted, hstsEnforced, pinSet, entryRefs);
DTrustedCertificateStoreAdapter.java29 private final NetworkSecurityConfig mConfig;
31 public TrustedCertificateStoreAdapter(NetworkSecurityConfig config) { in TrustedCertificateStoreAdapter()
DNetworkSecurityTrustManager.java44 private final NetworkSecurityConfig mNetworkSecurityConfig;
49 public NetworkSecurityTrustManager(NetworkSecurityConfig config) { in NetworkSecurityTrustManager()
DRootTrustManagerFactorySpi.java38 private NetworkSecurityConfig mConfig;
/frameworks/base/config/
Dpreloaded-classes2765 android.security.net.config.NetworkSecurityConfig
2766 android.security.net.config.NetworkSecurityConfig$1
2767 android.security.net.config.NetworkSecurityConfig$Builder
Dboot-image-profile.txt29371 …onfig;->getConfigForHostname(Ljava/lang/String;)Landroid/security/net/config/NetworkSecurityConfig;
29390 …config/KeyStoreConfigSource;->getDefaultConfig()Landroid/security/net/config/NetworkSecurityConfig;
29392 …gSource$DefaultConfigSource;->getDefaultConfig()Landroid/security/net/config/NetworkSecurityConfig;
29395 …config/ManifestConfigSource;->getDefaultConfig()Landroid/security/net/config/NetworkSecurityConfig;
29397 HSPLandroid/security/net/config/NetworkSecurityConfig$1;->compare(Landroid/security/net/config/Cert…
29398 HSPLandroid/security/net/config/NetworkSecurityConfig$1;->compare(Ljava/lang/Object;Ljava/lang/Obje…
29399 HSPLandroid/security/net/config/NetworkSecurityConfig$Builder;->getEffectiveCertificatesEntryRefs()…
29400 HSPLandroid/security/net/config/NetworkSecurityConfig$Builder;->getEffectiveCleartextTrafficPermitt…
29401 HSPLandroid/security/net/config/NetworkSecurityConfig$Builder;->getEffectiveHstsEnforced()Z
29402 HSPLandroid/security/net/config/NetworkSecurityConfig$Builder;->getEffectivePinSet()Landroid/securi…
[all …]