/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyStoreTest.java | 522 for (KeyStore keyStore : keyStores()) { in test_KeyStore_getProvider() 523 assertNotNull(keyStore.getProvider()); in test_KeyStore_getProvider() 533 for (KeyStore keyStore : keyStores()) { in test_KeyStore_getType() 534 assertNotNull(keyStore.getType()); in test_KeyStore_getType() 539 for (KeyStore keyStore : keyStores()) { in test_KeyStore_getKey() 541 keyStore.getKey(null, null); in test_KeyStore_getKey() 542 fail(keyStore.getType()); in test_KeyStore_getKey() 547 for (KeyStore keyStore : keyStores()) { in test_KeyStore_getKey() 548 populate(keyStore); in test_KeyStore_getKey() 552 keyStore.getKey(null, null); in test_KeyStore_getKey() [all …]
|
D | ImportWrappedKeyTest.java | 111 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testKeyStore_ImportWrappedKey() local 112 keyStore.load(null, null); in testKeyStore_ImportWrappedKey() 114 assertTrue("Failed to load key after wrapped import", keyStore.containsAlias(ALIAS)); in testKeyStore_ImportWrappedKey() 116 Key key = keyStore.getKey(ALIAS, null); in testKeyStore_ImportWrappedKey() 174 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testKeyStore_ImportWrappedKey_3DES() local 175 keyStore.load(null, null); in testKeyStore_ImportWrappedKey_3DES() 177 assertTrue("Failed to load key after wrapped import", keyStore.containsAlias(ALIAS)); in testKeyStore_ImportWrappedKey_3DES() 179 Key key = keyStore.getKey(ALIAS, null); in testKeyStore_ImportWrappedKey_3DES() 211 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testKeyStore_ImportWrappedKey_3DES_StrongBox() local 212 keyStore.load(null, null); in testKeyStore_ImportWrappedKey_3DES_StrongBox() [all …]
|
D | KeyAttestationTest.java | 209 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testEcAttestation_NoChallenge() local 210 keyStore.load(null); in testEcAttestation_NoChallenge() 213 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testEcAttestation_NoChallenge() 219 keyStore.deleteEntry(keystoreAlias); in testEcAttestation_NoChallenge() 240 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testEcAttestation_KeyStoreExceptionWhenRequestingUniqueId() local 241 keyStore.load(null); in testEcAttestation_KeyStoreExceptionWhenRequestingUniqueId() 242 keyStore.deleteEntry(keystoreAlias); in testEcAttestation_KeyStoreExceptionWhenRequestingUniqueId() 327 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testRsaAttestation_NoChallenge() local 328 keyStore.load(null); in testRsaAttestation_NoChallenge() 331 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testRsaAttestation_NoChallenge() [all …]
|
D | AESCipherNistCavpKatTest.java | 271 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in runKatTest() local 272 keyStore.load(null); in runKatTest() 273 keyStore.setEntry(keyAlias, in runKatTest() 282 SecretKey key = (SecretKey) keyStore.getKey(keyAlias, null); in runKatTest() 301 keyStore.deleteEntry(keyAlias); in runKatTest()
|
D | TestUtils.java | 155 static void assertKeyStoreKeyPair(KeyStore keyStore, String alias, KeyPair keyPair) { in assertKeyStoreKeyPair() argument 164 entry = keyStore.getEntry(alias, null); in assertKeyStoreKeyPair() 165 cert = keyStore.getCertificate(alias); in assertKeyStoreKeyPair() 426 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in importIntoAndroidKeyStore() local 427 keyStore.load(null); in importIntoAndroidKeyStore() 428 keyStore.setEntry(alias, in importIntoAndroidKeyStore() 432 keyStore.getCertificate(alias).getPublicKey(), in importIntoAndroidKeyStore() 433 (PrivateKey) keyStore.getKey(alias, null)); in importIntoAndroidKeyStore() 440 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in importIntoAndroidKeyStore() local 441 keyStore.load(null); in importIntoAndroidKeyStore() [all …]
|
D | AndroidKeyStoreTest.java | 749 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in tearDown() local 750 keyStore.load(null, null); in tearDown() 751 Enumeration<String> aliases = keyStore.aliases(); in tearDown() 754 keyStore.deleteEntry(alias); in tearDown()
|
D | KeyPairGeneratorTest.java | 1658 serverKeyStore.keyStore.setCertificateEntry( in assertUsableForTLSPeerAuthentication() 1664 TestKeyStore.createTrustManagers(serverKeyStore.keyStore)); in assertUsableForTLSPeerAuthentication()
|
/cts/hostsidetests/appsecurity/test-apps/AuthBoundKeyApp/src/com/android/cts/authboundkey/ |
D | AuthBoundKeyAppTest.java | 46 KeyStore keyStore = KeyStore.getInstance(KEYSTORE); in testGenerateAuthBoundKey() local 47 keyStore.load(null); in testGenerateAuthBoundKey() 61 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testUseKey() local 62 keyStore.load(null); in testUseKey() 64 SecretKey secretKey = (SecretKey) keyStore.getKey(KEY_NAME, null); in testUseKey()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CertificateTest.java | 122 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in createWfaKeyStore() local 123 keyStore.load(null, null); in createWfaKeyStore() 127 keyStore.setCertificateEntry(String.format("%d", index++), cert); in createWfaKeyStore() 129 return keyStore; in createWfaKeyStore() 173 KeyStore keyStore = KeyStore.getInstance("AndroidCAStore"); in getDeviceCertificates() local 174 keyStore.load(null, null); in getDeviceCertificates() 176 List<String> aliases = Collections.list(keyStore.aliases()); in getDeviceCertificates() 181 assertTrue(keyStore.isCertificateEntry(alias)); in getDeviceCertificates() 182 X509Certificate certificate = (X509Certificate) keyStore.getCertificate(alias); in getDeviceCertificates()
|
/cts/hostsidetests/devicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/ |
D | AdminActionBookkeepingTest.java | 97 KeyStore keyStore = KeyStore.getInstance("AndroidCAStore"); in testGetPolicyInstalledCaCerts() local 98 keyStore.load(null, null); in testGetPolicyInstalledCaCerts() 99 assertNull(keyStore.getCertificateAlias(cert)); in testGetPolicyInstalledCaCerts() 101 final String alias = keyStore.getCertificateAlias(cert); in testGetPolicyInstalledCaCerts()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | ScreenLockBoundKeysTest.java | 115 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createKey() local 116 keyStore.load(null); in createKey() 144 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in tryEncrypt() local 145 keyStore.load(null); in tryEncrypt() 146 SecretKey secretKey = (SecretKey) keyStore.getKey(KEY_NAME, null); in tryEncrypt()
|
D | FingerprintBoundKeysTest.java | 155 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createKey() local 156 keyStore.load(null); in createKey() 217 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in encryptInternal() local 218 keyStore.load(null); in encryptInternal() 219 SecretKey secretKey = (SecretKey) keyStore.getKey(KEY_NAME, null); in encryptInternal()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | AdminActionBookkeepingTest.java | 194 KeyStore keyStore = KeyStore.getInstance("AndroidCAStore"); in testGetPolicyInstalledCaCerts() local 195 keyStore.load(null, null); in testGetPolicyInstalledCaCerts() 196 assertNull(keyStore.getCertificateAlias(cert)); in testGetPolicyInstalledCaCerts() 198 final String alias = keyStore.getCertificateAlias(cert); in testGetPolicyInstalledCaCerts()
|
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/ |
D | DirectDelegatedCertInstallerTest.java | 139 KeyStore keyStore = KeyStore.getInstance("AndroidCAStore"); in testCaCertsOperations() local 140 keyStore.load(null, null); in testCaCertsOperations() 142 + " beginning of the test").that(keyStore.getCertificateAlias(caCert)).isNull(); in testCaCertsOperations() 158 keyStore.getCertificateAlias(caCert)).isNotNull(); in testCaCertsOperations()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | AuthenticationBoundKeyTestActivity.java | 214 KeyStore keyStore = KeyStore.getInstance(KEYSTORE_NAME); in createKey() local 215 keyStore.load(null); in createKey() 242 KeyStore keyStore = KeyStore.getInstance(KEYSTORE_NAME); in loadSecretKey() local 243 keyStore.load(null); in loadSecretKey() 244 return (SecretKey) keyStore.getKey(getKeyName(testType), null); in loadSecretKey()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | DelegatedCertInstallerTest.java | 200 KeyStore keyStore = KeyStore.getInstance("AndroidCAStore"); in testCaCertsOperations() local 201 keyStore.load(null, null); in testCaCertsOperations() 202 assertNull(keyStore.getCertificateAlias(caCert)); in testCaCertsOperations() 213 final String alias = keyStore.getCertificateAlias(caCert); in testCaCertsOperations()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewSslTest.java | 1029 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in onReceivedClientCertRequest() local 1030 keyStore.load(null); in onReceivedClientCertRequest() 1032 keyStore.setEntry( in onReceivedClientCertRequest() 1037 key = (PrivateKey) keyStore.getKey("fake1", null); in onReceivedClientCertRequest()
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | TestWebServer.java | 536 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in getKeyManagers() local 537 keyStore.load(inputStream, PASSWORD.toCharArray()); in getKeyManagers() 542 keyManagerFactory.init(keyStore, PASSWORD.toCharArray()); in getKeyManagers()
|
D | CtsTestServer.java | 907 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in getKeyManagers() local 908 keyStore.load(inputStream, PASSWORD.toCharArray()); in getKeyManagers() 913 keyManagerFactory.init(keyStore, PASSWORD.toCharArray()); in getKeyManagers()
|