Home
last modified time | relevance | path

Searched refs:certificates (Results 1 – 20 of 20) sorted by relevance

/libcore/luni/src/test/java/tests/security/cert/
DCollectionCertStoreParametersTest.java76 Vector<Certificate> certificates = new Vector<Certificate>(); in testCollectionCertStoreParametersCollection01() local
77 certificates.add(new MyCertificate("TEST", new byte[] {})); in testCollectionCertStoreParametersCollection01()
78 new CollectionCertStoreParameters(certificates); in testCollectionCertStoreParametersCollection01()
89 Vector<String> certificates = new Vector<String>(); in testCollectionCertStoreParametersCollection02() local
90 certificates.add(new String("Not a Certificate")); in testCollectionCertStoreParametersCollection02()
91 new CollectionCertStoreParameters(certificates); in testCollectionCertStoreParametersCollection02()
99 Vector<Certificate> certificates = new Vector<Certificate>(); in testCollectionCertStoreParametersCollection03() local
102 new CollectionCertStoreParameters(certificates); in testCollectionCertStoreParametersCollection03()
104 assertTrue("isRefUsed_1", certificates == cp.getCollection()); in testCollectionCertStoreParametersCollection03()
108 certificates.add(new MyCertificate("TEST", new byte[] {(byte)1})); in testCollectionCertStoreParametersCollection03()
[all …]
DCertStore2Test.java216 Collection<? extends Certificate> certificates = certStore.getCertificates(null); in testGetCertificates() local
217 assertNull(certificates); in testGetCertificates()
223 … Collection<? extends Certificate> certificates = certStore.getCertificates(new MyCertSelector()); in testGetCertificates() local
224 assertNotNull(certificates); in testGetCertificates()
225 assertTrue(certificates.isEmpty()); in testGetCertificates()
/libcore/ojluni/src/main/java/java/security/
DIdentity.java99 Vector<Certificate> certificates; field in Identity
189 certificates = new Vector<Certificate>(); in setPublicKey()
251 if (certificates == null) { in addCertificate()
252 certificates = new Vector<Certificate>(); in addCertificate()
262 certificates.addElement(certificate); in addCertificate()
299 if (certificates != null) { in removeCertificate()
302 if (certificate == null || !certificates.contains(certificate)) { in removeCertificate()
305 certificates.removeElement(certificate); in removeCertificate()
314 public Certificate[] certificates() { in certificates() method in Identity
315 if (certificates == null) { in certificates()
[all …]
/libcore/ojluni/src/main/java/sun/security/pkcs/
DPKCS7.java72 private X509Certificate[] certificates = null; field in PKCS7
224 X509Certificate[] certificates, in PKCS7() argument
231 this.certificates = certificates; in PKCS7()
238 X509Certificate[] certificates, in PKCS7() argument
240 this(digestAlgorithmIds, contentInfo, certificates, null, signerInfos); in PKCS7()
248 certificates = new X509Certificate[contents.length]; in parseNetscapeCertChain()
263 certificates[i] = new X509CertImpl(contents[i], original); in parseNetscapeCertChain()
266 certificates[i] = new VerbatimX509Certificate( in parseNetscapeCertChain()
332 certificates = new X509Certificate[len]; in parseSignedData()
345 certificates[count] = new X509CertImpl(certVals[i], original); in parseSignedData()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DHostnameVerifierBenchmark.java73 final Certificate[] certificates = bytesToCertificates(encodedCertificates); in timeVerify() local
76 return certificates; in timeVerify()
83 private byte[][] certificatesToBytes(Certificate[] certificates) throws Exception { in certificatesToBytes() argument
84 byte[][] result = new byte[certificates.length][]; in certificatesToBytes()
85 for (int i = 0, certificatesLength = certificates.length; i < certificatesLength; i++) { in certificatesToBytes()
86 result[i] = certificates[i].getEncoded(); in certificatesToBytes()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
DMyCertPath.java43 private final Vector<MyCertificate> certificates; field in MyCertPath
61 certificates = new Vector<MyCertificate>(); in MyCertPath()
62 certificates.add(new MyCertificate("MyEncoding", encoding)); in MyCertPath()
72 return Collections.unmodifiableList(certificates); in getCertificates()
DMyCertificateFactorySpi.java124 public CertPath engineGenerateCertPath(List<? extends Certificate> certificates) { in engineGenerateCertPath() argument
125 if (certificates == null) { in engineGenerateCertPath()
/libcore/luni/src/test/java/tests/targets/security/cert/
DCertPathBuilderTestPKIX.java70 List<? extends Certificate> certificates = path.getCertificates(); in validateCertPath() local
74 assertEquals(2, certificates.size()); in validateCertPath()
76 Certificate endEntityCert = certificates.get(0); in validateCertPath()
/libcore/luni/src/test/java/tests/java/security/
DIdentityTest.java129 assertSame(c1, i.certificates()[0]); in testAddCertificate1()
146 assertSame(c1, i.certificates()[0]); in testAddCertificate2()
199 java.security.Certificate[] s = i.certificates(); in testCertificates()
206 s = i.certificates(); in testCertificates()
305 assertEquals(2, i.certificates().length); in testSetPublicKey4()
311 assertEquals(0, i.certificates().length); in testSetPublicKey4()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DJarFileTest.java602 public Certificate[] certificates; field in JarFileTest.Results
623 results.certificates = certs; in getSignedJarCerts()
638 assertEquals(Arrays.deepToString(result.certificates), 3, result.certificates.length); in testJarFile_Signed_ValidChain()
641 …assertEquals("CN=fake-chain", ((X509Certificate) result.certificates[0]).getSubjectDN().toString()… in testJarFile_Signed_ValidChain()
642 …assertEquals("CN=intermediate1", ((X509Certificate) result.certificates[1]).getSubjectDN().toStrin… in testJarFile_Signed_ValidChain()
643 … assertEquals("CN=root1", ((X509Certificate) result.certificates[2]).getSubjectDN().toString()); in testJarFile_Signed_ValidChain()
649 assertEquals(Arrays.deepToString(result.certificates), 3, result.certificates.length); in testJarFile_Signed_InvalidChain()
652 …assertEquals("CN=fake-chain", ((X509Certificate) result.certificates[0]).getSubjectDN().toString()… in testJarFile_Signed_InvalidChain()
653 …assertEquals("CN=intermediate1", ((X509Certificate) result.certificates[1]).getSubjectDN().toStrin… in testJarFile_Signed_InvalidChain()
654 … assertEquals("CN=root1", ((X509Certificate) result.certificates[2]).getSubjectDN().toString()); in testJarFile_Signed_InvalidChain()
[all …]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DPKIXCertPathValidator.java91 List<X509Certificate> certList = params.certificates(); in validate()
171 int certPathLen = params.certificates().size(); in validate()
223 params.certificates(), in validate()
DPKIX.java122 List<X509Certificate> certificates() { in certificates() method in PKIX.ValidatorParams
DRevocationChecker.java154 new CollectionCertStoreParameters(params.certificates()))); in init()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DIdentity2Test.java253 java.security.Certificate[] certs = sub.certificates(); in test_certificates()
258 assertEquals(0, sub.certificates().length); in test_certificates()
282 1, sub.certificates().length); in test_removeCertificateLjava_security_Certificate()
286 0, sub.certificates().length); in test_removeCertificateLjava_security_Certificate()
/libcore/ojluni/src/main/java/java/security/cert/
DCertificateFactory.java446 generateCertPath(List<? extends Certificate> certificates) in generateCertPath() argument
449 return(certFacSpi.engineGenerateCertPath(certificates)); in generateCertPath()
DCertificateFactorySpi.java176 engineGenerateCertPath(List<? extends Certificate> certificates) in engineGenerateCertPath() argument
/libcore/ojluni/annotations/hiddenapi/sun/security/pkcs/
DPKCS7.java56 java.security.cert.X509Certificate[] certificates, in PKCS7() argument
66 java.security.cert.X509Certificate[] certificates, in PKCS7() argument
175 private java.security.cert.X509Certificate[] certificates; field in PKCS7
/libcore/ojluni/annotations/mmodule/sun/security/pkcs/
DPKCS7.annotated.java58 …ty.pkcs.ContentInfo contentInfo, java.security.cert.X509Certificate[] certificates, java.security.… in PKCS7() argument
61 …ty.pkcs.ContentInfo contentInfo, java.security.cert.X509Certificate[] certificates, sun.security.p… in PKCS7() argument
/libcore/luni/src/test/java/libcore/java/net/
DURLConnectionTest.java3378 private String certificatesToString(X509Certificate[] certificates) {
3380 for (X509Certificate certificate : certificates) {
/libcore/api/
Dcurrent.txt7354 method @Deprecated public java.security.Certificate[] certificates();