Searched refs:mKeyStore (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | AndroidKeyStoreTest.java | 74 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 …]
|
D | KeyPairGeneratorTest.java | 78 private KeyStore mKeyStore; field in KeyPairGeneratorTest 129 mKeyStore = KeyStore.getInstance("AndroidKeyStore"); in setUp() 130 mKeyStore.load(null, null); in setUp() 1609 TestUtils.assertKeyStoreKeyPair(mKeyStore, alias, keyPair); in assertGeneratedKeyPairAndSelfSignedCertificate() 1611 X509Certificate cert = (X509Certificate) mKeyStore.getCertificate(alias); in assertGeneratedKeyPairAndSelfSignedCertificate() 1620 Arrays.asList(mKeyStore.getCertificateChain(alias)), cert); in assertGeneratedKeyPairAndSelfSignedCertificate() 1624 assertSelfSignedCertificateSignatureVerifies(mKeyStore.getCertificate(alias)); in assertSelfSignedCertificateSignatureVerifies() 1630 (PrivateKey) mKeyStore.getKey(alias, null), in assertKeyPairAndCertificateUsableForTLSPeerAuthentication() 1631 mKeyStore.getCertificateChain(alias)); in assertKeyPairAndCertificateUsableForTLSPeerAuthentication()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | KeyChainTest.java | 100 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()
|