Home
last modified time | relevance | path

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

/frameworks/base/keystore/tests/src/android/security/
DKeyPairGeneratorSpecTest.java29 private static final X500Principal TEST_DN_1 = new X500Principal("CN=test1"); field in KeyPairGeneratorSpecTest
43 new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, in testConstructor_Success()
54 assertEquals("subjectDN should be the one specified", TEST_DN_1, spec.getSubjectDN()); in testConstructor_Success()
66 .setSubject(TEST_DN_1) in testBuilder_Success()
81 assertEquals("subjectDN should be the one specified", TEST_DN_1, spec.getSubjectDN()); in testBuilder_Success()
92 … new KeyPairGeneratorSpec(null, TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, SERIAL_1, NOW, in testConstructor_NullContext_Failure()
101 … new KeyPairGeneratorSpec(getContext(), null, "RSA", 1024, null, TEST_DN_1, SERIAL_1, NOW, in testConstructor_NullKeystoreAlias_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.java51 private static final X500Principal TEST_DN_1 = new X500Principal("CN=test1"); field in AndroidKeyPairGeneratorTest
92 .setSubject(TEST_DN_1) in testKeyPairGenerator_Initialize_Params_Encrypted_Success()
130 .setSubject(TEST_DN_1) in testKeyPairGenerator_Initialize_ParamsAndSecureRandom_Encrypted_Failure()
144 .setSubject(TEST_DN_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()
162 .setSubject(TEST_DN_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()
181 .setSubject(TEST_DN_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()
306 .setSubject(TEST_DN_1) in testKeyPairGenerator_GenerateKeyPair_DSA_SpecifiedParams_Unencrypted_Success()
[all …]
DAndroidKeyStoreTest.java76 private static final X500Principal TEST_DN_1 = new X500Principal("CN=test1"); field in AndroidKeyStoreTest
2391 TEST_SERIAL_1, TEST_DN_1, NOW, NOW_PLUS_10_YEARS); in testKeyStore_SetKeyEntry_ReplacedChain_Encrypted_Success()
2441 TEST_SERIAL_1, TEST_DN_1, NOW, NOW_PLUS_10_YEARS); in testKeyStore_SetKeyEntry_ReplacedChain_DifferentPrivateKey_Encrypted_Failure()
2487 generateCertificate(mAndroidKeyStore, TEST_ALIAS_1, TEST_SERIAL_1, TEST_DN_1, in testKeyStore_SetKeyEntry_ReplacedChain_UnencryptedToEncrypted_Failure()
2607 TEST_DN_1, NOW, NOW_PLUS_10_YEARS); in setupKey()