Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DAndroidKeyStoreTest.java73 private static final String TEST_ALIAS_1 = "test1"; field in AndroidKeyStoreTest
812 mKeyStore.setEntry(TEST_ALIAS_1, makeUserRsaKey1(), null); in testKeyStore_Aliases_Unencrypted_Success()
814 assertAliases(new String[] { TEST_ALIAS_1 }); in testKeyStore_Aliases_Unencrypted_Success()
818 assertAliases(new String[] { TEST_ALIAS_1, TEST_ALIAS_2 }); in testKeyStore_Aliases_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()
857 assertFalse("Should contain added CA certificate", mKeyStore.containsAlias(TEST_ALIAS_1)); in testKeyStore_ContainsAliases_NonExistent_Unencrypted_Failure()
864 mKeyStore.setEntry(TEST_ALIAS_1, makeUserRsaKey1(), null); in testKeyStore_DeleteEntry_Unencrypted_Success()
872 assertAliases(new String[] { TEST_ALIAS_1, TEST_ALIAS_2, TEST_ALIAS_3 }); in testKeyStore_DeleteEntry_Unencrypted_Success()
874 mKeyStore.deleteEntry(TEST_ALIAS_1); in testKeyStore_DeleteEntry_Unencrypted_Success()
[all …]
DKeyPairGeneratorSpecTest.java28 private static final String TEST_ALIAS_1 = "test1"; field in KeyPairGeneratorSpecTest
44 .setAlias(TEST_ALIAS_1) in testBuilder_Unencrypted_Success()
53 assertEquals("Alias should be the one specified", TEST_ALIAS_1, spec.getKeystoreAlias()); in testBuilder_Unencrypted_Success()
88 .setAlias(TEST_ALIAS_1) in testBuilder_MissingSubjectDN_Failure()
101 .setAlias(TEST_ALIAS_1) in testBuilder_MissingSerialNumber_Failure()
114 .setAlias(TEST_ALIAS_1) in testBuilder_MissingStartDate_Failure()
127 .setAlias(TEST_ALIAS_1) in testBuilder_MissingEndDate_Failure()
140 .setAlias(TEST_ALIAS_1) in testBuilder_EndBeforeStart_Failure()
DKeyPairGeneratorTest.java87 private static final String TEST_ALIAS_1 = "test1"; field in KeyPairGeneratorTest
164 .setAlias(TEST_ALIAS_1) in testInitialize_LegacySpec()
179 TEST_ALIAS_1, in testInitialize_ModernSpec()
388 .setAlias(TEST_ALIAS_1) in testGenerate_EC_LegacySpec()
398 TEST_ALIAS_1, in testGenerate_EC_LegacySpec()
404 assertSelfSignedCertificateSignatureVerifies(TEST_ALIAS_1); in testGenerate_EC_LegacySpec()
405 assertKeyPairAndCertificateUsableForTLSPeerAuthentication(TEST_ALIAS_1); in testGenerate_EC_LegacySpec()
410 assertEquals(TEST_ALIAS_1, keyInfo.getKeystoreAlias()); in testGenerate_EC_LegacySpec()
528 .setAlias(TEST_ALIAS_1) in testGenerate_RSA_LegacySpec()
537 TEST_ALIAS_1, in testGenerate_RSA_LegacySpec()
[all …]