Searched refs:mKeyStore (Results 1 – 7 of 7) sorted by relevance
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | AndroidKeyStoreTest.java | 96 private KeyStore mKeyStore; field in AndroidKeyStoreTest 766 mKeyStore = KeyStore.getInstance("AndroidKeyStore"); in setUp() 815 final Enumeration<String> aliases = mKeyStore.aliases(); in assertAliases() 834 mKeyStore.deleteEntry(alias); in deleteEntryIfNotNull() 840 mKeyStore.load(null, null); in testKeyStore_Aliases_Unencrypted_Success() 844 mKeyStore.setEntry(getTestAlias1(), makeUserRsaKey1(), null); in testKeyStore_Aliases_Unencrypted_Success() 848 mKeyStore.setEntry(getTestAlias2(), makeCa1(), null); in testKeyStore_Aliases_Unencrypted_Success() 856 mKeyStore.aliases(); in testKeyStore_Aliases_NotInitialized_Unencrypted_Failure() 864 mKeyStore.load(null, null); in testKeyStore_ContainsAliases_PrivateAndCA_Unencrypted_Success() 868 mKeyStore.setEntry(getTestAlias1(), makeUserRsaKey1(), null); in testKeyStore_ContainsAliases_PrivateAndCA_Unencrypted_Success() [all …]
|
D | NoAttestKeyTest.java | 48 private KeyStore mKeyStore; field in NoAttestKeyTest 53 mKeyStore = KeyStore.getInstance("AndroidKeyStore"); in setUp() 54 mKeyStore.load(null); in setUp() 64 mKeyStore.deleteEntry(alias); in tearDown() 140 return mKeyStore.getCertificateChain(spec.getKeystoreAlias()); in generateKeyPair()
|
D | AttestKeyTest.java | 62 private KeyStore mKeyStore; field in AttestKeyTest 67 mKeyStore = KeyStore.getInstance("AndroidKeyStore"); in setUp() 68 mKeyStore.load(null); in setUp() 78 mKeyStore.deleteEntry(alias); in tearDown() 291 return mKeyStore.getCertificateChain(spec.getKeystoreAlias()); in generateKeyPair()
|
D | KeyPairGeneratorTest.java | 107 private KeyStore mKeyStore; field in KeyPairGeneratorTest 161 mKeyStore = KeyStore.getInstance("AndroidKeyStore"); in setUp() 162 mKeyStore.load(null, null); in setUp() 1917 TestUtils.assertKeyStoreKeyPair(mKeyStore, alias, keyPair); in assertGeneratedKeyPairAndSelfSignedCertificate() 1919 X509Certificate cert = (X509Certificate) mKeyStore.getCertificate(alias); in assertGeneratedKeyPairAndSelfSignedCertificate() 1929 Arrays.asList(mKeyStore.getCertificateChain(alias)), cert); in assertGeneratedKeyPairAndSelfSignedCertificate() 1933 assertSelfSignedCertificateSignatureVerifies(mKeyStore.getCertificate(alias)); in assertSelfSignedCertificateSignatureVerifies() 1939 (PrivateKey) mKeyStore.getKey(alias, null), in assertKeyPairAndCertificateUsableForTLSPeerAuthentication() 1940 mKeyStore.getCertificateChain(alias)); in assertKeyPairAndCertificateUsableForTLSPeerAuthentication()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | KeystoreAttestationDeviceInfo.java | 95 KeyStore mKeyStore = KeyStore.getInstance("AndroidKeyStore"); in collectKeystoreAttestation() local 96 mKeyStore.load(null); in collectKeystoreAttestation() 97 mKeyStore.deleteEntry(TEST_ALIAS_KEYSTORE); in collectKeystoreAttestation() 100 loadCertAndCollectAttestation(mKeyStore, localStore, TEST_ALIAS_KEYSTORE, false); in collectKeystoreAttestation() 105 KeyStore mKeyStore = KeyStore.getInstance("AndroidKeyStore"); in collectStrongBoxAttestation() local 106 mKeyStore.load(null); in collectStrongBoxAttestation() 107 mKeyStore.deleteEntry(TEST_ALIAS_STRONG_BOX); in collectStrongBoxAttestation() 110 loadCertAndCollectAttestation(mKeyStore, localStore, TEST_ALIAS_STRONG_BOX, true); in collectStrongBoxAttestation()
|
/cts/tests/tests/keystore/src/android/keystore/cts/performance/ |
D | PerformanceTestBase.java | 330 private final KeyStore mKeyStore; field in PerformanceTestBase.AndroidKeystoreKeyGenerator 335 mKeyStore = KeyStore.getInstance(getProvider()); in AndroidKeystoreKeyGenerator() 336 mKeyStore.load(null); in AndroidKeystoreKeyGenerator() 341 mKeyStore.deleteEntry(KEY_ALIAS); in deleteKey() 349 return mKeyStore.getCertificateChain(KEY_ALIAS); in getCertificateChain()
|
/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()
|