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.java74 private static final String TEST_ALIAS_1 = "test1"; field in AndroidKeyStoreTest
802 mKeyStore.setEntry(TEST_ALIAS_1, makeUserRsaKey1(), null); in testKeyStore_Aliases_Unencrypted_Success()
804 assertAliases(new String[] { TEST_ALIAS_1 }); in testKeyStore_Aliases_Unencrypted_Success()
808 assertAliases(new String[] { TEST_ALIAS_1, TEST_ALIAS_2 }); in testKeyStore_Aliases_Unencrypted_Success()
824 mKeyStore.setEntry(TEST_ALIAS_1, makeUserRsaKey1(), null); in testKeyStore_ContainsAliases_PrivateAndCA_Unencrypted_Success()
826 assertTrue("Should contain generated private key", mKeyStore.containsAlias(TEST_ALIAS_1)); in testKeyStore_ContainsAliases_PrivateAndCA_Unencrypted_Success()
847 assertFalse("Should contain added CA certificate", mKeyStore.containsAlias(TEST_ALIAS_1)); in testKeyStore_ContainsAliases_NonExistent_Unencrypted_Failure()
854 mKeyStore.setEntry(TEST_ALIAS_1, makeUserRsaKey1(), null); in testKeyStore_DeleteEntry_Unencrypted_Success()
862 assertAliases(new String[] { TEST_ALIAS_1, TEST_ALIAS_2, TEST_ALIAS_3 }); in testKeyStore_DeleteEntry_Unencrypted_Success()
864 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.java82 private static final String TEST_ALIAS_1 = "test1"; field in KeyPairGeneratorTest
159 .setAlias(TEST_ALIAS_1) in testInitialize_LegacySpec()
174 TEST_ALIAS_1, in testInitialize_ModernSpec()
374 .setAlias(TEST_ALIAS_1) in testGenerate_EC_LegacySpec()
384 TEST_ALIAS_1, in testGenerate_EC_LegacySpec()
390 assertSelfSignedCertificateSignatureVerifies(TEST_ALIAS_1); in testGenerate_EC_LegacySpec()
391 assertKeyPairAndCertificateUsableForTLSPeerAuthentication(TEST_ALIAS_1); in testGenerate_EC_LegacySpec()
396 assertEquals(TEST_ALIAS_1, keyInfo.getKeystoreAlias()); in testGenerate_EC_LegacySpec()
514 .setAlias(TEST_ALIAS_1) in testGenerate_RSA_LegacySpec()
523 TEST_ALIAS_1, in testGenerate_RSA_LegacySpec()
[all …]