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/keystore/
DAndroidKeyStoreTest.java65 private static final String TEST_ALIAS_1 = "test1"; field in AndroidKeyStoreTest
768 assertTrue(mAndroidKeyStore.generate(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_Aliases_Encrypted_Success()
772 assertAliases(new String[] { TEST_ALIAS_1 }); in testKeyStore_Aliases_Encrypted_Success()
777 assertAliases(new String[] { TEST_ALIAS_1, TEST_ALIAS_2 }); in testKeyStore_Aliases_Encrypted_Success()
797 assertTrue(mAndroidKeyStore.generate(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_ContainsAliases_PrivateAndCA_Encrypted_Success()
801 assertTrue("Should contain generated private key", mKeyStore.containsAlias(TEST_ALIAS_1)); in testKeyStore_ContainsAliases_PrivateAndCA_Encrypted_Success()
828 assertFalse("Should contain added CA certificate", mKeyStore.containsAlias(TEST_ALIAS_1)); in testKeyStore_ContainsAliases_NonExistent_Encrypted_Failure()
837 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_DeleteEntry_Encrypted_Success()
839 … assertTrue(mAndroidKeyStore.put(Credentials.USER_CERTIFICATE + TEST_ALIAS_1, FAKE_RSA_USER_1, in testKeyStore_DeleteEntry_Encrypted_Success()
841 assertTrue(mAndroidKeyStore.put(Credentials.CA_CERTIFICATE + TEST_ALIAS_1, FAKE_RSA_CA_1, in testKeyStore_DeleteEntry_Encrypted_Success()
[all …]
DAndroidKeyPairGeneratorTest.java53 private static final String TEST_ALIAS_1 = "test1"; field in AndroidKeyPairGeneratorTest
97 .setAlias(TEST_ALIAS_1) in testKeyPairGenerator_Initialize_Params_Encrypted_Success()
133 .setAlias(TEST_ALIAS_1) in testKeyPairGenerator_Initialize_ParamsAndSecureRandom_Encrypted_Failure()
149 .setAlias(TEST_ALIAS_1) in testKeyPairGenerator_GenerateKeyPair_Encrypted_Success()
160 assertKeyPairCorrect(pair, TEST_ALIAS_1, "RSA", 2048, null, TEST_DN_1, TEST_SERIAL_1, NOW, in testKeyPairGenerator_GenerateKeyPair_Encrypted_Success()
167 TEST_ALIAS_1, in testKeyPairGenerator_GenerateKeyPair_EC_Unencrypted_Success()
179 assertKeyPairCorrect(pair, TEST_ALIAS_1, "EC", 256, null, TEST_DN_1, TEST_SERIAL_1, NOW, in testKeyPairGenerator_GenerateKeyPair_EC_Unencrypted_Success()
186 .setAlias(TEST_ALIAS_1) in testKeyPairGenerator_Legacy_GenerateKeyPair_EC_Unencrypted_Success()
197 assertKeyPairCorrect(pair, TEST_ALIAS_1, "EC", 256, null, TEST_DN_1, TEST_SERIAL_1, NOW, in testKeyPairGenerator_Legacy_GenerateKeyPair_EC_Unencrypted_Success()
203 .setAlias(TEST_ALIAS_1) in testKeyPairGenerator_GenerateKeyPair_EC_P521_Unencrypted_Success()
[all …]
/frameworks/base/keystore/tests/src/android/security/
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 …]