Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiKeyStoreTest.java71 when(mWifiEnterpriseConfig.getClientPrivateKey()).thenReturn(FakeKeys.RSA_KEY1); in setUp()
72 when(mWifiEnterpriseConfig.getClientCertificate()).thenReturn(FakeKeys.CLIENT_CERT); in setUp()
73 when(mWifiEnterpriseConfig.getCaCertificate()).thenReturn(FakeKeys.CA_CERT0); in setUp()
75 .thenReturn(new X509Certificate[] {FakeKeys.CLIENT_CERT}); in setUp()
77 .thenReturn(new X509Certificate[] {FakeKeys.CA_CERT0}); in setUp()
159 eq(expectedAlias), eq(FakeKeys.RSA_KEY1), eq(null), in testAddKeysForAppInstalledCerts()
160 aryEq(new X509Certificate[] {FakeKeys.CLIENT_CERT})); in testAddKeysForAppInstalledCerts()
161 verify(mKeyStore).setCertificateEntry(eq(expectedCaAlias), eq(FakeKeys.CA_CERT0)); in testAddKeysForAppInstalledCerts()
193 eq(savedNetworkAlias), eq(FakeKeys.RSA_KEY1), eq(null), in testAddRemoveFromBothSavedAndSuggestionNetwork()
194 aryEq(new X509Certificate[] {FakeKeys.CLIENT_CERT})); in testAddRemoveFromBothSavedAndSuggestionNetwork()
[all …]
DWifiConfigurationUtilTest.java68 .setCaCerts(new X509Certificate[]{FakeKeys.CA_CERT0}); in testEnterpriseConfigAdded()
114 .setCaCerts(new X509Certificate[]{FakeKeys.CA_CERT0}); in testCaCertificateAddedDetected()
128 .setCaCerts(new X509Certificate[]{FakeKeys.CA_CERT0}); in testDifferentCaCertificateDetected()
133 .setCaCerts(new X509Certificate[]{FakeKeys.CA_CERT1}); in testDifferentCaCertificateDetected()
147 .setCaCerts(new X509Certificate[]{FakeKeys.CA_CERT0}); in testCaCertificateChangesDetected()
152 .setCaCerts(new X509Certificate[]{FakeKeys.CA_CERT0, FakeKeys.CA_CERT1}); in testCaCertificateChangesDetected()
166 .setCaCerts(new X509Certificate[]{FakeKeys.CA_CERT0, FakeKeys.CA_CERT1}); in testWifiEnterpriseConfigNoChanges()
172 .setCaCerts(new X509Certificate[]{FakeKeys.CA_CERT0, FakeKeys.CA_CERT1}); in testWifiEnterpriseConfigNoChanges()
DWifiConfigurationTestUtil.java394 configuration.enterpriseConfig.setCaCertificate(FakeKeys.CA_SUITE_B_ECDSA_CERT); in createEapSuiteBNetwork()
396 FakeKeys.CLIENT_SUITE_B_ECC_KEY, in createEapSuiteBNetwork()
397 new X509Certificate[] {FakeKeys.CLIENT_SUITE_B_ECDSA_CERT}); in createEapSuiteBNetwork()
399 configuration.enterpriseConfig.setCaCertificate(FakeKeys.CA_SUITE_B_RSA3072_CERT); in createEapSuiteBNetwork()
401 FakeKeys.CLIENT_SUITE_B_RSA3072_KEY, in createEapSuiteBNetwork()
402 new X509Certificate[] {FakeKeys.CLIENT_SUITE_B_RSA3072_CERT}); in createEapSuiteBNetwork()
513 config.setCaCertificates(new X509Certificate[] {FakeKeys.CA_CERT0, FakeKeys.CA_CERT1}); in createPEAPWifiEnterpriseConfigWithGTCPhase2()
523 config.setCaCertificates(new X509Certificate[] {FakeKeys.CA_CERT0, FakeKeys.CA_CERT1}); in createTLSWifiEnterpriseConfigWithNonePhase2()
DFakeKeys.java17 public class FakeKeys { class
DNetworkSuggestionStoreDataTest.java506 credential.setCaCertificate(FakeKeys.CA_CERT0); in createTestConfigWithUserCredential()
DWifiNetworkSuggestionsManagerTest.java4105 credential.setCaCertificate(FakeKeys.CA_CERT0); in createTestConfigWithUserCredential()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiEnterpriseConfigTest.java77 X509Certificate cert0 = FakeKeys.CA_CERT0; in testSetGetSingleCaCertificate()
84 X509Certificate cert0 = FakeKeys.CA_CERT0; in testSetGetMultipleCaCertificates()
85 X509Certificate cert1 = FakeKeys.CA_CERT1; in testSetGetMultipleCaCertificates()
102 PrivateKey clientKey = FakeKeys.RSA_KEY1; in testSetClientKeyEntryWithNull()
103 X509Certificate clientCert0 = FakeKeys.CLIENT_CERT; in testSetClientKeyEntryWithNull()
104 X509Certificate clientCert1 = FakeKeys.CA_CERT1; in testSetClientKeyEntryWithNull()
122 PrivateKey clientKey = FakeKeys.RSA_KEY1; in testSetClientCertificateChain()
123 X509Certificate cert0 = FakeKeys.CLIENT_CERT; in testSetClientCertificateChain()
124 X509Certificate cert1 = FakeKeys.CA_CERT1; in testSetClientCertificateChain()
136 PrivateKey clientKey = FakeKeys.RSA_KEY1; in isClientCertificateChainInvalid()
[all …]
DParcelUtilTest.java57 PrivateKey writeKey = FakeKeys.RSA_KEY1; in readWriteValidPrivateKey()
78 X509Certificate writeCert = FakeKeys.CA_CERT1; in readWriteValidCertificate()
99 writeCerts[0] = FakeKeys.CA_CERT0; in readWriteValidCertificates()
100 writeCerts[1] = FakeKeys.CA_CERT1; in readWriteValidCertificates()
DFakeKeys.java33 public class FakeKeys { class
DWifiNetworkSuggestionTest.java212 enterpriseConfig.setCaCertificate(FakeKeys.CA_CERT0); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork()
261 enterpriseConfig.setCaCertificate(FakeKeys.CA_CERT0); in testWifiNetworkSuggestionBuilderForEapNetworkWithoutMatch()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProviderTest.java40 import com.android.server.wifi.FakeKeys;
132 {FakeKeys.CA_CERT0, REMEDIATION_CA_CERTIFICATE_ALIAS}, // For R2 config in rootCAConfigsForRemediation()
264 credential.setCaCertificates(new X509Certificate[] {FakeKeys.CA_CERT0}); in generateTestPasspointConfiguration()
273 .digest(FakeKeys.CLIENT_CERT.getEncoded())); in generateTestPasspointConfiguration()
274 credential.setCaCertificates(new X509Certificate[] {FakeKeys.CA_CERT0}); in generateTestPasspointConfiguration()
275 credential.setClientPrivateKey(FakeKeys.RSA_KEY1); in generateTestPasspointConfiguration()
276 credential.setClientCertificateChain(new X509Certificate[] {FakeKeys.CLIENT_CERT}); in generateTestPasspointConfiguration()
488 credential.setCaCertificates(new X509Certificate[]{FakeKeys.CA_CERT0, FakeKeys.CA_CERT1}); in installCertsAndKeysSuccess()
497 when(mKeyStore.putCaCertInKeyStore(CA_CERTIFICATE_ALIAS, FakeKeys.CA_CERT0)) in installCertsAndKeysSuccess()
499 when(mKeyStore.putCaCertInKeyStore(CA_CERTIFICATE_ALIAS_2, FakeKeys.CA_CERT1)) in installCertsAndKeysSuccess()
[all …]
DPasspointManagerTest.java79 import com.android.server.wifi.FakeKeys;
314 credential.setCaCertificate(FakeKeys.CA_CERT0); in createTestConfigWithUserCredentialAndRealm()
733 X509Certificate[] certArr = new X509Certificate[] {FakeKeys.CA_CERT0}; in addProviderWithValidFullImsiOfSimCredential()
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/pps/
DCredentialTest.java25 import android.net.wifi.FakeKeys;
87 MessageDigest.getInstance("SHA-256").digest(FakeKeys.CLIENT_CERT.getEncoded())); in createCredentialWithCertificateCredential()
88 return createCredential(null, certCred, null, new X509Certificate[] {FakeKeys.CLIENT_CERT}, in createCredentialWithCertificateCredential()
89 FakeKeys.RSA_KEY1, FakeKeys.CA_CERT0, FakeKeys.CA_CERT1); in createCredentialWithCertificateCredential()
118 return createCredential(userCred, null, null, null, null, FakeKeys.CA_CERT0); in createCredentialWithUserCredential()
545 assertTrue(Credential.isX509CertificateEquals(FakeKeys.CA_CERT1, FakeKeys.CA_CERT1)); in validateTwoCertificateIdentical()
553 assertFalse(Credential.isX509CertificateEquals(FakeKeys.CA_CERT0, FakeKeys.CA_CERT1)); in validateTwoCertificateDifferent()
615 MessageDigest.getInstance("SHA-256").digest(FakeKeys.CA_CERT0.getEncoded())); in testUniqueIdDifferentForCertCredentialsWithDifferentValues()
DUpdateParameterTest.java23 import android.net.wifi.FakeKeys;
61 updateParam.setCaCertificate(FakeKeys.CA_CERT0); in createUpdateParameter()
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/
DConfigParserTest.java22 import android.net.wifi.FakeKeys;
114 credential.setCaCertificate(FakeKeys.CA_CERT0); in generateConfigurationFromProfile()