Searched refs:cert1 (Results 1 – 2 of 2) sorted by relevance
485 X509Certificate cert1 = (X509Certificate) factory.generateCertificate( in testSettersAndGetters() local489 config.setCaCertificate(cert1); in testSettersAndGetters()490 assertTrue(config.getCaCertificate().getSerialNumber().equals(cert1.getSerialNumber())); in testSettersAndGetters()491 config.setCaCertificates(new X509Certificate[]{cert1, cert2}); in testSettersAndGetters()493 assertTrue(cert1.getSerialNumber().equals(certs[0].getSerialNumber())); in testSettersAndGetters()
2046 Certificate cert1 = TestUtils.getRawResX509Certificate(getContext(), R.raw.rsa_key1_cert); in testKeyStore_LargeNumberOfKeysSupported_RSA() local2065 new KeyStore.PrivateKeyEntry(privateKey1, new Certificate[] {cert1}), in testKeyStore_LargeNumberOfKeysSupported_RSA()2106 sig.initVerify(cert1.getPublicKey()); in testKeyStore_LargeNumberOfKeysSupported_RSA()2145 Certificate cert1 = TestUtils.getRawResX509Certificate(getContext(), R.raw.ec_key1_cert); in testKeyStore_LargeNumberOfKeysSupported_EC() local2163 new KeyStore.PrivateKeyEntry(privateKey1, new Certificate[] {cert1}), in testKeyStore_LargeNumberOfKeysSupported_EC()2204 sig.initVerify(cert1.getPublicKey()); in testKeyStore_LargeNumberOfKeysSupported_EC()