Home
last modified time | relevance | path

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

/frameworks/base/keystore/tests/src/android/security/
DAndroidKeyStoreTest.java70 private static final String TEST_ALIAS_1 = "test1"; field in AndroidKeyStoreTest
1135 assertTrue(mAndroidKeyStore.generate(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_Aliases_Encrypted_Success()
1139 assertAliases(new String[] { TEST_ALIAS_1 }); in testKeyStore_Aliases_Encrypted_Success()
1144 assertAliases(new String[] { TEST_ALIAS_1, TEST_ALIAS_2 }); in testKeyStore_Aliases_Encrypted_Success()
1164 assertTrue(mAndroidKeyStore.generate(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_ContainsAliases_PrivateAndCA_Encrypted_Success()
1168 assertTrue("Should contain generated private key", mKeyStore.containsAlias(TEST_ALIAS_1)); in testKeyStore_ContainsAliases_PrivateAndCA_Encrypted_Success()
1195 assertFalse("Should contain added CA certificate", mKeyStore.containsAlias(TEST_ALIAS_1)); in testKeyStore_ContainsAliases_NonExistent_Encrypted_Failure()
1204 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_DeleteEntry_Encrypted_Success()
1206 … assertTrue(mAndroidKeyStore.put(Credentials.USER_CERTIFICATE + TEST_ALIAS_1, FAKE_RSA_USER_1, in testKeyStore_DeleteEntry_Encrypted_Success()
1208 assertTrue(mAndroidKeyStore.put(Credentials.CA_CERTIFICATE + TEST_ALIAS_1, FAKE_RSA_CA_1, in testKeyStore_DeleteEntry_Encrypted_Success()
[all …]
DKeyPairGeneratorSpecTest.java27 private static final String TEST_ALIAS_1 = "test1"; field in KeyPairGeneratorSpecTest
43 new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, in testConstructor_Success()
48 assertEquals("Alias should be the one specified", TEST_ALIAS_1, spec.getKeystoreAlias()); in testConstructor_Success()
63 .setAlias(TEST_ALIAS_1) in testBuilder_Success()
75 assertEquals("Alias should be the one specified", TEST_ALIAS_1, spec.getKeystoreAlias()); in testBuilder_Success()
92 … new KeyPairGeneratorSpec(null, TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, SERIAL_1, NOW, in testConstructor_NullContext_Failure()
110 … new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, null, SERIAL_1, NOW, in testConstructor_NullSubjectDN_Failure() local
119 … new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, null, NOW, in testConstructor_NullSerial_Failure() local
128 … new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, SERIAL_1, in testConstructor_NullStartDate_Failure() local
137 … new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, SERIAL_1, in testConstructor_NullEndDate_Failure() local
[all …]
DAndroidKeyPairGeneratorTest.java47 private static final String TEST_ALIAS_1 = "test1"; field in AndroidKeyPairGeneratorTest
91 .setAlias(TEST_ALIAS_1) in testKeyPairGenerator_Initialize_Params_Encrypted_Success()
127 .setAlias(TEST_ALIAS_1) in testKeyPairGenerator_Initialize_ParamsAndSecureRandom_Encrypted_Failure()
143 .setAlias(TEST_ALIAS_1) in testKeyPairGenerator_GenerateKeyPair_Encrypted_Success()
154 assertKeyPairCorrect(pair, TEST_ALIAS_1, "RSA", 2048, null, TEST_DN_1, TEST_SERIAL_1, NOW, in testKeyPairGenerator_GenerateKeyPair_Encrypted_Success()
160 .setAlias(TEST_ALIAS_1) in testKeyPairGenerator_GenerateKeyPair_DSA_Unencrypted_Success()
171 assertKeyPairCorrect(pair, TEST_ALIAS_1, "DSA", 1024, null, TEST_DN_1, TEST_SERIAL_1, NOW, in testKeyPairGenerator_GenerateKeyPair_DSA_Unencrypted_Success()
178 .setAlias(TEST_ALIAS_1) in testKeyPairGenerator_GenerateKeyPair_DSA_2048_Unencrypted_Success()
190 assertKeyPairCorrect(pair, TEST_ALIAS_1, "DSA", 2048, null, TEST_DN_1, TEST_SERIAL_1, NOW, in testKeyPairGenerator_GenerateKeyPair_DSA_2048_Unencrypted_Success()
302 .setAlias(TEST_ALIAS_1) in testKeyPairGenerator_GenerateKeyPair_DSA_SpecifiedParams_Unencrypted_Success()
[all …]