Home
last modified time | relevance | path

Searched refs:generateCertificate (Results 1 – 25 of 46) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DHostnameVerifierTest.java49 x509 = (X509Certificate) cf.generateCertificate(in); in testVerify()
58 x509 = (X509Certificate) cf.generateCertificate(in); in testVerify()
64 x509 = (X509Certificate) cf.generateCertificate(in); in testVerify()
72 x509 = (X509Certificate) cf.generateCertificate(in); in testVerify()
85 x509 = (X509Certificate) cf.generateCertificate(in); in testVerify()
91 x509 = (X509Certificate) cf.generateCertificate(in); in testVerify()
101 x509 = (X509Certificate) cf.generateCertificate(in); in testVerify()
109 x509 = (X509Certificate) cf.generateCertificate(in); in testVerify()
115 x509 = (X509Certificate) cf.generateCertificate(in); in testVerify()
136 X509Certificate x509 = (X509Certificate) cf.generateCertificate(in); in testSubjectAlt()
[all …]
DX509KeyManagerTest.java636 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in init()
637 cert[1] = (X509Certificate) cf.generateCertificate(certArray2); in init()
638 cert[2] = (X509Certificate) cf.generateCertificate(certArray3); in init()
649 cert[0] = (X509Certificate) cf.generateCertificate(certArray3); in init()
DX509TrustManagerTest.java16 X509Certificate pemCert = (X509Certificate) certFact.generateCertificate( in setX509Certificate()
24 X509Certificate pemCert = (X509Certificate) certFact.generateCertificate( in setInvalid()
DHttpsURLConnectionTest.java276 Certificate cert = cf.generateCertificate(bis); in getLocalCertificates()
291 Certificate cert = cf.generateCertificate(bis); in getServerCertificates()
/libcore/luni/src/test/java/tests/targets/security/cert/
DCertificateTest.java598 .generateCertificate(new ByteArrayInputStream(selfSignedCertMD5 in testVerifyMD5()
611 .generateCertificate(new ByteArrayInputStream(selfSignedCertMD2 in testVerifyMD2()
704 .generateCertificate(new ByteArrayInputStream( in getCertList()
707 .generateCertificate(new ByteArrayInputStream( in getCertList()
710 .generateCertificate(new ByteArrayInputStream( in getCertList()
714 .generateCertificate(new ByteArrayInputStream( in getCertList()
717 .generateCertificate(new ByteArrayInputStream( in getCertList()
720 .generateCertificate(new ByteArrayInputStream( in getCertList()
DCertPathValidatorTestPKIX.java62 (X509Certificate) certificateFactory.generateCertificate( in setUp()
/libcore/luni/src/test/java/tests/security/cert/
DPKIXBuilderParametersTest.java246 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in testPKIXBuilderParametersKeyStoreCertSelector04()
247 cert[1] = (X509Certificate) cf.generateCertificate(certArray2); in testPKIXBuilderParametersKeyStoreCertSelector04()
277 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in testGetMaxPathLength()
278 cert[1] = (X509Certificate) cf.generateCertificate(certArray2); in testGetMaxPathLength()
305 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in testSetMaxPathLength()
306 cert[1] = (X509Certificate) cf.generateCertificate(certArray2); in testSetMaxPathLength()
348 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in testToString()
349 cert[1] = (X509Certificate) cf.generateCertificate(certArray2); in testToString()
DCertificateFactory4Test.java65 fact.generateCertificate(bais); in test_generateCertificateLjava_io_InputStream()
70 fact.generateCertificate(bais); in test_generateCertificateLjava_io_InputStream()
76 fact.generateCertificate(is); in test_generateCertificateLjava_io_InputStream()
219 CertificateFactory.getInstance("X.509").generateCertificate(null); in testGenerateCertificate()
DTrustAnchorTest.java285 .generateCertificate(new ByteArrayInputStream(TestUtils in testTrustAnchorX509CertificatebyteArray01()
351 .generateCertificate(new ByteArrayInputStream(TestUtils in testTrustAnchorX509CertificatebyteArray03()
374 .generateCertificate(new ByteArrayInputStream(TestUtils in testTrustAnchorX509CertificatebyteArray04()
496 .generateCertificate(new ByteArrayInputStream(TestUtils in testGetNameConstraints01()
521 .generateCertificate(new ByteArrayInputStream(TestUtils in testGetNameConstraints02()
547 .generateCertificate(new ByteArrayInputStream(TestUtils in testToString()
DCertificateFactory3Test.java91 certs[i] = certFs[i].generateCertificate(new ByteArrayInputStream( in testGenerateCertificate()
106 .generateCertificate(new ByteArrayInputStream(TestUtils in testGenerateCertificates()
127 .generateCertificate(new ByteArrayInputStream(TestUtils in testGenerateCertPath01()
DX509Certificate2Test.java49 .generateCertificate(new ByteArrayInputStream(TestUtils in test_toString()
509 X509Certificate cert = (X509Certificate) cf.generateCertificate(bais); in generateCert()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyStore2Test.java141 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in creatCertificate()
142 cert[1] = (X509Certificate) cf.generateCertificate(certArray2); in creatCertificate()
170 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in test_aliases()
171 cert[1] = (X509Certificate) cf.generateCertificate(certArray2); in test_aliases()
215 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in test_containsAliasLjava_lang_String()
216 cert[1] = (X509Certificate) cf.generateCertificate(certArray2); in test_containsAliasLjava_lang_String()
252 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in test_getCertificateLjava_lang_String()
253 cert[1] = (X509Certificate) cf.generateCertificate(certArray2); in test_getCertificateLjava_lang_String()
292 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in test_getCertificateAliasLjava_security_cert_Certificate()
293 cert[1] = (X509Certificate) cf.generateCertificate(certArray2); in test_getCertificateAliasLjava_security_cert_Certificate()
[all …]
DIdentity2Test.java249 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in test_certificates()
268 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in test_removeCertificateLjava_security_Certificate()
302 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in test_equalsLjava_lang_Object()
322 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in test_identityEqualsLjava_security_Identity()
DKeyStorePrivateKeyEntryTest.java62 Certificate certificate = cf.generateCertificate(certArray); in testGetCertificateChain()
/libcore/luni/src/test/java/libcore/java/security/cert/
DCertificateFactoryTest.java190 Certificate c = cf.generateCertificate(new ByteArrayInputStream(valid)); in test_generateCertificate()
196 Certificate c = cf.generateCertificate(new ByteArrayInputStream(valid)); in test_generateCertificate()
202 cf.generateCertificate(new ByteArrayInputStream(invalid)); in test_generateCertificate()
236 cf.generateCertificate(new ByteArrayInputStream(baos.toByteArray())); in test_generateCertificate_AnyLineLength_Success()
253 Certificate c = cf.generateCertificate(new ByteArrayInputStream(new byte[0])); in test_generateCertificate_InputStream_Empty()
268 Certificate c = cf.generateCertificate(new ByteArrayInputStream( in test_generateCertificate_InputStream_InvalidStart_Failure()
290 Certificate certificate = cf.generateCertificate(certStream); in test_generateCertificate_InputStream_Offset_Correct()
371 KeyHolder ca = generateCertificate(true, null); in testGenerateCertPath()
372 KeyHolder cert1 = generateCertificate(true, ca); in testGenerateCertPath()
373 KeyHolder cert2 = generateCertificate(false, cert1); in testGenerateCertPath()
[all …]
DSubjectAlternativeNameTest.java69 return (X509Certificate) factory.generateCertificate(new ByteArrayInputStream(encoded)); in bouncycastleToJava()
/libcore/ojluni/src/main/java/com/sun/security/cert/internal/x509/
DX509V1CertImpl.java85 getFactory().generateCertificate(bs); in X509V1CertImpl()
101 getFactory().generateCertificate(in); in X509V1CertImpl()
317 getFactory().generateCertificate(stream); in readObject()
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
DX509KeyManagerImpl.java96 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in X509KeyManagerImpl()
97 cert[1] = (X509Certificate) cf.generateCertificate(certArray2); in X509KeyManagerImpl()
106 cert[0] = (X509Certificate) cf.generateCertificate(certArray3); in X509KeyManagerImpl()
/libcore/luni/src/test/java/libcore/javax/security/auth/x500/
DX500PrincipalTest.java64 certFactBC.generateCertificate(new ByteArrayInputStream(T61STRING_CERT)); in testGetName()
66 certFactOpenSSL.generateCertificate(new ByteArrayInputStream(T61STRING_CERT)); in testGetName()
/libcore/luni/src/test/java/tests/security/
DCertificateFactoryTest.java43 Certificate certificate = certificateFactory.generateCertificate( in testCertificateFactory()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
DTestUtils.java105 X509Certificate c1 = (X509Certificate)cf.generateCertificate(bis); in getTrustAnchor()
779 rootCertificateSS = (X509Certificate) cf.generateCertificate(bi);
781 endCertificate = (X509Certificate) cf.generateCertificate(bi);
/libcore/ojluni/src/test/java/security/cert/
DPKIXCertPathValidatorValidity.java139 return (X509Certificate) cf.generateCertificate(stream); in generateCert()
DAKISerialNumberTest.java146 return (X509Certificate)cf.generateCertificate(stream); in getCertFromMimeEncoding()
/libcore/ojluni/src/main/java/java/security/cert/
DCertificate.java275 return cf.generateCertificate in readResolve()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/
DX509CertificateTest.java139 .generateCertificate(bais); in setUp()
144 .generateCertificate(new ByteArrayInputStream(selfSignedCert.getBytes())); in setUp()
150 this.javaSSCert = cf.generateCertificate(new ByteArrayInputStream( in setUp()

12