Searched refs:mKeyStore (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | AndroidKeyStoreTest.java | 75 private KeyStore mKeyStore; field in AndroidKeyStoreTest 741 mKeyStore = KeyStore.getInstance("AndroidKeyStore"); in setUp() 794 final Enumeration<String> aliases = mKeyStore.aliases(); in assertAliases() 812 mKeyStore.load(null, null); in testKeyStore_Aliases_Unencrypted_Success() 816 mKeyStore.setEntry(TEST_ALIAS_1, makeUserRsaKey1(), null); in testKeyStore_Aliases_Unencrypted_Success() 820 mKeyStore.setEntry(TEST_ALIAS_2, makeCa1(), null); in testKeyStore_Aliases_Unencrypted_Success() 827 mKeyStore.aliases(); in testKeyStore_Aliases_NotInitialized_Unencrypted_Failure() 834 mKeyStore.load(null, null); in testKeyStore_ContainsAliases_PrivateAndCA_Unencrypted_Success() 838 mKeyStore.setEntry(TEST_ALIAS_1, makeUserRsaKey1(), null); in testKeyStore_ContainsAliases_PrivateAndCA_Unencrypted_Success() 840 assertTrue("Should contain generated private key", mKeyStore.containsAlias(TEST_ALIAS_1)); in testKeyStore_ContainsAliases_PrivateAndCA_Unencrypted_Success() [all …]
|
D | AttestKeyTest.java | 59 private KeyStore mKeyStore; field in AttestKeyTest 64 mKeyStore = KeyStore.getInstance("AndroidKeyStore"); in setUp() 65 mKeyStore.load(null); in setUp() 75 mKeyStore.deleteEntry(alias); in tearDown() 193 return mKeyStore.getCertificateChain(spec.getKeystoreAlias()); in generateKeyPair()
|
D | PerformanceTestBase.java | 325 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()
|
D | KeyPairGeneratorTest.java | 83 private KeyStore mKeyStore; field in KeyPairGeneratorTest 134 mKeyStore = KeyStore.getInstance("AndroidKeyStore"); in setUp() 135 mKeyStore.load(null, null); in setUp() 1669 TestUtils.assertKeyStoreKeyPair(mKeyStore, alias, keyPair); in assertGeneratedKeyPairAndSelfSignedCertificate() 1671 X509Certificate cert = (X509Certificate) mKeyStore.getCertificate(alias); in assertGeneratedKeyPairAndSelfSignedCertificate() 1681 Arrays.asList(mKeyStore.getCertificateChain(alias)), cert); in assertGeneratedKeyPairAndSelfSignedCertificate() 1685 assertSelfSignedCertificateSignatureVerifies(mKeyStore.getCertificate(alias)); in assertSelfSignedCertificateSignatureVerifies() 1691 (PrivateKey) mKeyStore.getKey(alias, null), in assertKeyPairAndCertificateUsableForTLSPeerAuthentication() 1692 mKeyStore.getCertificateChain(alias)); in assertKeyPairAndCertificateUsableForTLSPeerAuthentication()
|