Home
last modified time | relevance | path

Searched refs:keyStore (Results 1 – 25 of 25) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyStoreTest.java523 for (KeyStore keyStore : keyStores()) { in test_KeyStore_getProvider()
524 assertNotNull(keyStore.getProvider()); in test_KeyStore_getProvider()
534 for (KeyStore keyStore : keyStores()) { in test_KeyStore_getType()
535 assertNotNull(keyStore.getType()); in test_KeyStore_getType()
540 for (KeyStore keyStore : keyStores()) { in test_KeyStore_getKey()
542 keyStore.getKey(null, null); in test_KeyStore_getKey()
543 fail(keyStore.getType()); in test_KeyStore_getKey()
548 for (KeyStore keyStore : keyStores()) { in test_KeyStore_getKey()
549 populate(keyStore); in test_KeyStore_getKey()
553 keyStore.getKey(null, null); in test_KeyStore_getKey()
[all …]
DImportWrappedKeyTest.java112 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testKeyStore_ImportWrappedKey() local
113 keyStore.load(null, null); in testKeyStore_ImportWrappedKey()
115 assertTrue("Failed to load key after wrapped import", keyStore.containsAlias(ALIAS)); in testKeyStore_ImportWrappedKey()
117 Key key = keyStore.getKey(ALIAS, null); in testKeyStore_ImportWrappedKey()
175 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testKeyStore_ImportWrappedKey_3DES() local
176 keyStore.load(null, null); in testKeyStore_ImportWrappedKey_3DES()
178 assertTrue("Failed to load key after wrapped import", keyStore.containsAlias(ALIAS)); in testKeyStore_ImportWrappedKey_3DES()
180 Key key = keyStore.getKey(ALIAS, null); in testKeyStore_ImportWrappedKey_3DES()
212 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testKeyStore_ImportWrappedKey_3DES_StrongBox() local
213 keyStore.load(null, null); in testKeyStore_ImportWrappedKey_3DES_StrongBox()
[all …]
DKeyAttestationTest.java247 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testEcAttestation_NoChallenge() local
248 keyStore.load(null); in testEcAttestation_NoChallenge()
251 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testEcAttestation_NoChallenge()
258 keyStore.deleteEntry(keystoreAlias); in testEcAttestation_NoChallenge()
290 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testEcAttestation_DeviceLocked() local
291 keyStore.load(null); in testEcAttestation_DeviceLocked()
294 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testEcAttestation_DeviceLocked()
300 keyStore.deleteEntry(keystoreAlias); in testEcAttestation_DeviceLocked()
322 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testAttestationKmVersionMatchesFeatureVersion() local
323 keyStore.load(null); in testAttestationKmVersionMatchesFeatureVersion()
[all …]
DAESCipherNistCavpKatTest.java271 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()
DTestUtils.java210 static void assertKeyStoreKeyPair(KeyStore keyStore, String alias, KeyPair keyPair) { in assertKeyStoreKeyPair() argument
219 entry = keyStore.getEntry(alias, null); in assertKeyStoreKeyPair()
220 cert = keyStore.getCertificate(alias); in assertKeyStoreKeyPair()
484 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in importIntoAndroidKeyStore() local
485 keyStore.load(null); in importIntoAndroidKeyStore()
486 keyStore.setEntry(alias, in importIntoAndroidKeyStore()
490 keyStore.getCertificate(alias).getPublicKey(), in importIntoAndroidKeyStore()
491 (PrivateKey) keyStore.getKey(alias, null)); in importIntoAndroidKeyStore()
498 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in importIntoAndroidKeyStore() local
499 keyStore.load(null); in importIntoAndroidKeyStore()
[all …]
DSignatureTest.java462 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey() local
463 keyStore.load(null); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
465 (KeyStore.PrivateKeyEntry) keyStore.getEntry(key.getAlias(), null); in testValidSignatureGeneratedForEmptyMessageByLimitedUseKey()
DAndroidKeyStoreTest.java749 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()
DKeyPairGeneratorTest.java1719 serverKeyStore.keyStore.setCertificateEntry( in assertUsableForTLSPeerAuthentication()
1725 TestKeyStore.createTrustManagers(serverKeyStore.keyStore)); in assertUsableForTLSPeerAuthentication()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/
DUtils.java41 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createBiometricBoundKey() local
42 keyStore.load(null); in createBiometricBoundKey()
61 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createTimeBoundSecretKey_deprecated() local
62 keyStore.load(null); in createTimeBoundSecretKey_deprecated()
80 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in initCipher() local
81 keyStore.load(null); in initCipher()
82 SecretKey secretKey = (SecretKey) keyStore.getKey(keyName, null); in initCipher()
92 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in initSignature() local
93 keyStore.load(null); in initSignature()
95 KeyStore.Entry entry = keyStore.getEntry(keyName, null); in initSignature()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DCertificateTest.java121 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in createWfaKeyStore() local
122 keyStore.load(null, null); in createWfaKeyStore()
125 keyStore.setCertificateEntry(String.format("%d", index++), cert); in createWfaKeyStore()
127 return keyStore; in createWfaKeyStore()
171 KeyStore keyStore = KeyStore.getInstance("AndroidCAStore"); in getDeviceCertificates() local
172 keyStore.load(null, null); in getDeviceCertificates()
174 List<String> aliases = Collections.list(keyStore.aliases()); in getDeviceCertificates()
179 assertTrue(keyStore.isCertificateEntry(alias)); in getDeviceCertificates()
180 X509Certificate certificate = (X509Certificate) keyStore.getCertificate(alias); in getDeviceCertificates()
/cts/hostsidetests/appsecurity/test-apps/AuthBoundKeyApp/src/com/android/cts/authboundkey/
DAuthBoundKeyAppTest.java51 KeyStore keyStore = KeyStore.getInstance(KEYSTORE); in testGenerateAuthBoundKey() local
52 keyStore.load(null); in testGenerateAuthBoundKey()
73 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in testUseKey() local
74 keyStore.load(null); in testUseKey()
76 SecretKey secretKey = (SecretKey) keyStore.getKey(KEY_NAME, null); in testUseKey()
/cts/hostsidetests/devicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/
DAdminActionBookkeepingTest.java68 KeyStore keyStore = KeyStore.getInstance("AndroidCAStore"); in testGetPolicyInstalledCaCerts() local
69 keyStore.load(null, null); in testGetPolicyInstalledCaCerts()
70 assertNull(keyStore.getCertificateAlias(cert)); in testGetPolicyInstalledCaCerts()
72 final String alias = keyStore.getCertificateAlias(cert); in testGetPolicyInstalledCaCerts()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DScreenLockBoundKeysTest.java115 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()
DFingerprintBoundKeysTest.java155 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()
DUnlockedDeviceRequiredTest.java172 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createKey() local
173 keyStore.load(null); in createKey()
202 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in tryEncrypt() local
203 keyStore.load(null); in tryEncrypt()
204 SecretKey secretKey = (SecretKey) keyStore.getKey(KEY_NAME, null); in tryEncrypt()
DProtectedConfirmationTest.java155 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in trySign() local
156 keyStore.load(null); in trySign()
157 KeyStore.Entry key = keyStore.getEntry(KEY_NAME, null); in trySign()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DUtils.java168 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createTimeBoundSecretKey_deprecated() local
169 keyStore.load(null); in createTimeBoundSecretKey_deprecated()
188 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createTimeBoundSecretKey() local
189 keyStore.load(null); in createTimeBoundSecretKey()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DAuthenticationBoundKeyTestActivity.java214 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/packagemanager/parsing/processing/
DApkGenerator.py31 keyStore = sys.argv[4] variable
102 "--ks", keyStore,
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DAdminActionBookkeepingTest.java236 KeyStore keyStore = KeyStore.getInstance("AndroidCAStore"); in testGetPolicyInstalledCaCerts() local
237 keyStore.load(null, null); in testGetPolicyInstalledCaCerts()
238 assertWithMessage("keystore.getCertificateAlias()").that(keyStore.getCertificateAlias(cert)) in testGetPolicyInstalledCaCerts()
242 final String alias = keyStore.getCertificateAlias(cert); in testGetPolicyInstalledCaCerts()
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DDirectDelegatedCertInstallerTest.java104 KeyStore keyStore = KeyStore.getInstance("AndroidCAStore"); in testCaCertsOperations() local
105 keyStore.load(null, null); in testCaCertsOperations()
107 + " beginning of the test").that(keyStore.getCertificateAlias(caCert)).isNull(); in testCaCertsOperations()
123 keyStore.getCertificateAlias(caCert)).isNotNull(); in testCaCertsOperations()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DDelegatedCertInstallerTest.java133 KeyStore keyStore = KeyStore.getInstance("AndroidCAStore"); in testCaCertsOperations() local
134 keyStore.load(null, null); in testCaCertsOperations()
135 assertNull(keyStore.getCertificateAlias(caCert)); in testCaCertsOperations()
146 final String alias = keyStore.getCertificateAlias(caCert); in testCaCertsOperations()
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java970 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in getHardCodedKeyManagers() local
971 keyStore.load(inputStream, PASSWORD.toCharArray()); in getHardCodedKeyManagers()
976 keyManagerFactory.init(keyStore, PASSWORD.toCharArray()); in getHardCodedKeyManagers()
998 KeyStore keyStore = KeyStore.getInstance("PKCS12"); in getKeyManagersFromStreams() local
999 keyStore.load(/*stream=*/null, /*password*/null); in getKeyManagersFromStreams()
1000 keyStore.setKeyEntry("server", privKey, EMPTY_PASSWORD, chain); in getKeyManagersFromStreams()
1004 keyManagerFactory.init(keyStore, EMPTY_PASSWORD); in getKeyManagersFromStreams()
DTestWebServer.java536 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()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewSslTest.java1073 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in onReceivedClientCertRequest() local
1074 keyStore.load(null); in onReceivedClientCertRequest()
1076 keyStore.setEntry( in onReceivedClientCertRequest()
1081 key = (PrivateKey) keyStore.getKey("fake1", null); in onReceivedClientCertRequest()