Home
last modified time | relevance | path

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

/cts/tests/tests/net/src/android/net/http/cts/
DX509TrustManagerExtensionsTest.java58 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in testIsUserAddedCert() local
60 new X509TrustManagerExtensions(new TrustManagerImpl(keyStore)); in testIsUserAddedCert()
74 new X509TrustManagerExtensions(new TrustManagerImpl(keyStore, null, tcs)); in testIsUserAddedCert()
/cts/tests/tests/security/src/android/security/cts/
DCertificateTest.java116 KeyStore keyStore = KeyStore.getInstance("AndroidCAStore"); in getDeviceCertificates() local
117 keyStore.load(null, null); in getDeviceCertificates()
119 List<String> aliases = Collections.list(keyStore.aliases()); in getDeviceCertificates()
124 assertTrue(keyStore.isCertificateEntry(alias)); in getDeviceCertificates()
125 X509Certificate certificate = (X509Certificate) keyStore.getCertificate(alias); in getDeviceCertificates()
/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.java94 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in onRequestPermissionsResult() local
95 keyStore.load(null); in onRequestPermissionsResult()
96 SecretKey secretKey = (SecretKey) keyStore.getKey(KEY_NAME, null); in onRequestPermissionsResult()
146 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createKey() local
147 keyStore.load(null); in createKey()
/cts/tests/tests/keystore/src/android/keystore/cts/
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.java136 static void assertKeyStoreKeyPair(KeyStore keyStore, String alias, KeyPair keyPair) { in assertKeyStoreKeyPair() argument
145 entry = keyStore.getEntry(alias, null); in assertKeyStoreKeyPair()
146 cert = keyStore.getCertificate(alias); in assertKeyStoreKeyPair()
407 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in importIntoAndroidKeyStore() local
408 keyStore.load(null); in importIntoAndroidKeyStore()
409 keyStore.setEntry(alias, in importIntoAndroidKeyStore()
413 keyStore.getCertificate(alias).getPublicKey(), in importIntoAndroidKeyStore()
414 (PrivateKey) keyStore.getKey(alias, null)); in importIntoAndroidKeyStore()
421 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in importIntoAndroidKeyStore() local
422 keyStore.load(null); in importIntoAndroidKeyStore()
[all …]
DAndroidKeyStoreTest.java737 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in tearDown() local
738 keyStore.load(null, null); in tearDown()
739 Enumeration<String> aliases = keyStore.aliases(); in tearDown()
742 keyStore.deleteEntry(alias); in tearDown()
DKeyPairGeneratorTest.java1339 serverKeyStore.keyStore.setCertificateEntry( in assertUsableForTLSPeerAuthentication()
1345 TestKeyStore.createTrustManagers(serverKeyStore.keyStore)); in assertUsableForTLSPeerAuthentication()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewSslTest.java1018 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in onReceivedClientCertRequest() local
1019 keyStore.load(null); in onReceivedClientCertRequest()
1021 keyStore.setEntry( in onReceivedClientCertRequest()
1026 key = (PrivateKey) keyStore.getKey("fake1", null); in onReceivedClientCertRequest()
/cts/libs/testserver/src/android/webkit/cts/
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()
DCtsTestServer.java971 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in getKeyManagers() local
972 keyStore.load(inputStream, PASSWORD.toCharArray()); in getKeyManagers()
977 keyManagerFactory.init(keyStore, PASSWORD.toCharArray()); in getKeyManagers()
/cts/tools/dex-tools/dex/
Dclasses0.out.dex32465 private java.security.KeyStore keyStore
85216 private java.security.KeyStore keyStore
87298 private java.security.KeyStore keyStore