Home
last modified time | relevance | path

Searched refs:mKeyStore (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DAndroidKeyStoreTest.java72 private KeyStore mKeyStore; field in AndroidKeyStoreTest
733 mKeyStore = KeyStore.getInstance("AndroidKeyStore"); in setUp()
780 final Enumeration<String> aliases = mKeyStore.aliases(); in assertAliases()
798 mKeyStore.load(null, null); in testKeyStore_Aliases_Unencrypted_Success()
802 mKeyStore.setEntry(TEST_ALIAS_1, makeUserRsaKey1(), null); in testKeyStore_Aliases_Unencrypted_Success()
806 mKeyStore.setEntry(TEST_ALIAS_2, makeCa1(), null); in testKeyStore_Aliases_Unencrypted_Success()
813 mKeyStore.aliases(); in testKeyStore_Aliases_NotInitialized_Unencrypted_Failure()
820 mKeyStore.load(null, null); in testKeyStore_ContainsAliases_PrivateAndCA_Unencrypted_Success()
824 mKeyStore.setEntry(TEST_ALIAS_1, makeUserRsaKey1(), null); in testKeyStore_ContainsAliases_PrivateAndCA_Unencrypted_Success()
826 assertTrue("Should contain generated private key", mKeyStore.containsAlias(TEST_ALIAS_1)); in testKeyStore_ContainsAliases_PrivateAndCA_Unencrypted_Success()
[all …]
DKeyPairGeneratorTest.java78 private KeyStore mKeyStore; field in KeyPairGeneratorTest
129 mKeyStore = KeyStore.getInstance("AndroidKeyStore"); in setUp()
130 mKeyStore.load(null, null); in setUp()
1317 TestUtils.assertKeyStoreKeyPair(mKeyStore, alias, keyPair); in assertGeneratedKeyPairAndSelfSignedCertificate()
1319 X509Certificate cert = (X509Certificate) mKeyStore.getCertificate(alias); in assertGeneratedKeyPairAndSelfSignedCertificate()
1328 Arrays.asList(mKeyStore.getCertificateChain(alias)), cert); in assertGeneratedKeyPairAndSelfSignedCertificate()
1332 assertSelfSignedCertificateSignatureVerifies(mKeyStore.getCertificate(alias)); in assertSelfSignedCertificateSignatureVerifies()
1338 (PrivateKey) mKeyStore.getKey(alias, null), in assertKeyPairAndCertificateUsableForTLSPeerAuthentication()
1339 mKeyStore.getCertificateChain(alias)); in assertKeyPairAndCertificateUsableForTLSPeerAuthentication()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java97 private KeyStore mKeyStore; field in KeyChainTest
245 mKeyStore = ks; in doInBackground()
250 mTrustManagerFactory.init(mKeyStore); in doInBackground()
270 mKeyStore.store(pkcs12, EMPTY_PASSWORD); in doInBackground()
316 kmf.init(mKeyStore, EMPTY_PASSWORD); in startWebServer()