Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DAndroidKeyStoreTest.java74 private KeyStore mKeyStore; field in AndroidKeyStoreTest
737 mKeyStore = KeyStore.getInstance("AndroidKeyStore"); in setUp()
790 final Enumeration<String> aliases = mKeyStore.aliases(); in assertAliases()
808 mKeyStore.load(null, null); in testKeyStore_Aliases_Unencrypted_Success()
812 mKeyStore.setEntry(TEST_ALIAS_1, makeUserRsaKey1(), null); in testKeyStore_Aliases_Unencrypted_Success()
816 mKeyStore.setEntry(TEST_ALIAS_2, makeCa1(), null); in testKeyStore_Aliases_Unencrypted_Success()
823 mKeyStore.aliases(); in testKeyStore_Aliases_NotInitialized_Unencrypted_Failure()
830 mKeyStore.load(null, null); in testKeyStore_ContainsAliases_PrivateAndCA_Unencrypted_Success()
834 mKeyStore.setEntry(TEST_ALIAS_1, makeUserRsaKey1(), null); in testKeyStore_ContainsAliases_PrivateAndCA_Unencrypted_Success()
836 assertTrue("Should contain generated private key", mKeyStore.containsAlias(TEST_ALIAS_1)); in testKeyStore_ContainsAliases_PrivateAndCA_Unencrypted_Success()
[all …]
DPerformanceTestBase.java325 private final KeyStore mKeyStore; field in PerformanceTestBase.AndroidKeystoreKeyGenerator
330 mKeyStore = KeyStore.getInstance(getProvider()); in AndroidKeystoreKeyGenerator()
331 mKeyStore.load(null); in AndroidKeystoreKeyGenerator()
336 mKeyStore.deleteEntry(KEY_ALIAS); in deleteKey()
344 return mKeyStore.getCertificateChain(KEY_ALIAS); in getCertificateChain()
DKeyPairGeneratorTest.java80 private KeyStore mKeyStore; field in KeyPairGeneratorTest
131 mKeyStore = KeyStore.getInstance("AndroidKeyStore"); in setUp()
132 mKeyStore.load(null, null); in setUp()
1669 TestUtils.assertKeyStoreKeyPair(mKeyStore, alias, keyPair); in assertGeneratedKeyPairAndSelfSignedCertificate()
1671 X509Certificate cert = (X509Certificate) mKeyStore.getCertificate(alias); in assertGeneratedKeyPairAndSelfSignedCertificate()
1680 Arrays.asList(mKeyStore.getCertificateChain(alias)), cert); in assertGeneratedKeyPairAndSelfSignedCertificate()
1684 assertSelfSignedCertificateSignatureVerifies(mKeyStore.getCertificate(alias)); in assertSelfSignedCertificateSignatureVerifies()
1690 (PrivateKey) mKeyStore.getKey(alias, null), in assertKeyPairAndCertificateUsableForTLSPeerAuthentication()
1691 mKeyStore.getCertificateChain(alias)); in assertKeyPairAndCertificateUsableForTLSPeerAuthentication()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java100 private KeyStore mKeyStore; field in KeyChainTest
248 mKeyStore = ks; in doInBackground()
253 mTrustManagerFactory.init(mKeyStore); in doInBackground()
273 mKeyStore.store(pkcs12, EMPTY_PASSWORD); in doInBackground()
357 kmf.init(mKeyStore, EMPTY_PASSWORD); in startWebServer()
362 desiredIssuer = (X509Certificate) mKeyStore.getCertificateChain(ALIAS)[1]; in startWebServer()