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.java76 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()
66 .setAlias(TEST_ALIAS_1) in testBuilder_Encrypted_Success()
76 assertEquals("Alias should be the one specified", TEST_ALIAS_1, spec.getKeystoreAlias()); in testBuilder_Encrypted_Success()
111 .setAlias(TEST_ALIAS_1) in testBuilder_MissingSubjectDN_Failure()
124 .setAlias(TEST_ALIAS_1) in testBuilder_MissingSerialNumber_Failure()
137 .setAlias(TEST_ALIAS_1) in testBuilder_MissingStartDate_Failure()
150 .setAlias(TEST_ALIAS_1) in testBuilder_MissingEndDate_Failure()
163 .setAlias(TEST_ALIAS_1) in testBuilder_EndBeforeStart_Failure()
DKeyPairGeneratorTest.java84 private static final String TEST_ALIAS_1 = "test1"; field in KeyPairGeneratorTest
161 .setAlias(TEST_ALIAS_1) in testInitialize_LegacySpec()
176 TEST_ALIAS_1, in testInitialize_ModernSpec()
385 .setAlias(TEST_ALIAS_1) in testGenerate_EC_LegacySpec()
395 TEST_ALIAS_1, in testGenerate_EC_LegacySpec()
401 assertSelfSignedCertificateSignatureVerifies(TEST_ALIAS_1); in testGenerate_EC_LegacySpec()
402 assertKeyPairAndCertificateUsableForTLSPeerAuthentication(TEST_ALIAS_1); in testGenerate_EC_LegacySpec()
407 assertEquals(TEST_ALIAS_1, keyInfo.getKeystoreAlias()); in testGenerate_EC_LegacySpec()
525 .setAlias(TEST_ALIAS_1) in testGenerate_RSA_LegacySpec()
534 TEST_ALIAS_1, in testGenerate_RSA_LegacySpec()
[all …]