/external/nist-pkits/src/libcore/java/security/cert/ |
H A D | X509CertificateNistPkitsTest.java | 71 final String fileName = "nist-pkits/certs/" + name; 86 X509Certificate[] certs = new X509Certificate[names.length]; 89 certs[i] = getCertificate(f, names[i]); 92 return certs; 120 X509Certificate[] certs = getCertificates(f, pathCerts); 121 return f.generateCertPath(Arrays.asList(certs)); 126 X509Certificate[] certs = getCertificates(f, pathCerts); 132 certCollection.addAll(Arrays.asList(certs)); 147 private void assertInvalidPath(String trustAnchor, String[] certs, String[] crls) argument 151 PKIXParameters params = getTestPathParams(f, trustAnchor, certs, crl 163 assertValidPath(String trustAnchor, String[] certs, String[] crls) argument [all...] |
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/ |
H A D | PoloUtil.java | 43 Certificate[] certs = session.getPeerCertificates(); 44 if (certs == null || certs.length < 1) { 47 return certs[0]; 62 Certificate[] certs = session.getLocalCertificates(); 63 if (certs == null || certs.length < 1) { 66 return certs[0];
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
H A D | PKIXCertPath.java | 69 * @param certs 72 List certs) 74 if (certs.size() < 2) 76 return certs; 79 X500Principal issuer = ((X509Certificate)certs.get(0)).getIssuerX500Principal(); 82 for (int i = 1; i != certs.size(); i++) 84 X509Certificate cert = (X509Certificate)certs.get(i); 88 issuer = ((X509Certificate)certs.get(i)).getIssuerX500Principal(); 99 return certs; 103 List retList = new ArrayList(certs 71 sortCerts( List certs) argument [all...] |
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
H A D | CertificateMessageTest.java | 63 assertEquals("incorrect message", 0, message.certs.length); 75 assertEquals("incorrect message_2", 0, message_2.certs.length); 92 assertTrue("incorrect cert encoding", Arrays.equals(message.certs[0] 103 assertEquals("Incorrect message decoding", message.certs.length, message_2.certs.length); 104 assertTrue("incorrect cert encoding", Arrays.equals(message.certs[0] 105 .getEncoded(), message_2.certs[0].getEncoded()));
|
/external/jetty/src/java/org/eclipse/jetty/server/ssl/ |
H A D | SslCertificates.java | 113 X509Certificate[] certs; 120 certs=cachedInfo.getCerts(); 126 certs=SslCertificates.getCertChain(sslSession); 129 cachedInfo=new CachedInfo(keySize,certs,idStr); 133 if (certs!=null) 134 request.setAttribute("javax.servlet.request.X509Certificate",certs); 159 CachedInfo(Integer keySize, X509Certificate[] certs,String idStr) argument 162 this._certs=certs;
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
H A D | TestCertUtils.java | 68 * real chain of certificates, it's just an array of 3 certs. The method 103 Certificate[] certs = new Certificate[howMany]; 105 certs[i] = new TestCertificate(Integer.toString(startID + i)); 107 return new TestCertPath(certs); 153 private Certificate[] certs; field in class:TestCertUtils.TestCertPath 163 certs = getCertChain(); 171 * @param certs 174 public TestCertPath(Certificate[] certs) { argument 176 this.certs = certs; 670 engineGenerateCertPath(List certs) argument [all...] |
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
H A D | HandshakeCompletedEventTest.java | 101 Certificate[] certs = event.getLocalCertificates(); 103 if (certs == null && ses_certs == null) { 106 if (certs == null || ses_certs == null) { 109 for (int i = 0; i < certs.length; i++) { 110 if (certs[i] != ses_certs[i]) {
|
/external/boringssl/src/tool/ |
H A D | pkcs12.cc | 123 STACK_OF(X509) *certs = sk_X509_new_null(); 125 if (!PKCS12_get_key_and_certs(&key, certs, &pkcs12, password)) { 134 for (size_t i = 0; i < sk_X509_num(certs); i++) { 135 PEM_write_X509(stdout, sk_X509_value(certs, i)); 137 sk_X509_pop_free(certs, X509_free);
|
/external/conscrypt/src/main/java/org/conscrypt/ |
H A D | OpenSSLX509CertPath.java | 93 final OpenSSLX509Certificate[] certs = new OpenSSLX509Certificate[mCertificates.size()]; 94 final long[] certRefs = new long[certs.length]; 96 for (int i = 0, j = certs.length - 1; j >= 0; i++, j--) { 100 certs[j] = (OpenSSLX509Certificate) cert; 102 certs[j] = OpenSSLX509Certificate.fromX509Der(cert.getEncoded()); 105 certRefs[j] = certs[j].getContext(); 165 final List<OpenSSLX509Certificate> certs = 171 certs.add(new OpenSSLX509Certificate(certRefs[i])); 174 return new OpenSSLX509CertPath(certs);
|
H A D | AbstractSessionContext.java | 219 Certificate[] certs = session.getPeerCertificates(); 220 daos.writeInt(certs.length); 222 for (Certificate cert : certs) { 259 X509Certificate[] certs = new X509Certificate[count]; 264 certs[i] = OpenSSLX509Certificate.fromX509Der(certData); 267 return new OpenSSLSessionImpl(sessionData, host, port, certs, this);
|
H A D | KeyManagerImpl.java | 105 Certificate[] certs = hash.get(alias).getCertificateChain(); 106 if (certs[0] instanceof X509Certificate) { 107 X509Certificate[] xcerts = new X509Certificate[certs.length]; 108 for (int i = 0; i < certs.length; i++) { 109 xcerts[i] = (X509Certificate) certs[i];
|
H A D | OpenSSLX509CRL.java | 83 final List<OpenSSLX509CRL> certs = new ArrayList<OpenSSLX509CRL>(certRefs.length); 88 certs.add(new OpenSSLX509CRL(certRefs[i])); 90 return certs; 123 final List<OpenSSLX509CRL> certs = new ArrayList<OpenSSLX509CRL>(certRefs.length); 128 certs.add(new OpenSSLX509CRL(certRefs[i])); 130 return certs;
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/ |
H A D | org.eclipse.ecf.ssl_1.0.0.v20100529-0735.jar | ... long serialVersionUID private java.security.cert.X509Certificate[] certs private String type public void " href="/6.0.0 ... |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
H A D | RFC3280CertPathUtilities.java | 473 // get CRL signing certs 535 List certs = builder.engineBuild(extParams).getCertPath().getCertificates(); 537 validKeys.add(CertPathValidatorUtilities.getNextWorkingKey(certs, 0, helper)); 896 List certs = certPath.getCertificates(); 897 X509Certificate cert = (X509Certificate)certs.get(index); 898 int n = certs.size(); 1080 List certs = certPath.getCertificates(); 1081 X509Certificate cert = (X509Certificate)certs.get(index); 1156 List certs = certPath.getCertificates(); 1157 X509Certificate cert = (X509Certificate)certs [all...] |
H A D | PKIXCertPathValidatorSpi.java | 110 List certs = certPath.getCertificates(); 111 int n = certs.size(); 113 if (certs.isEmpty()) 119 X509Certificate cert = (X509Certificate) certs.get(0); 150 trust = CertPathValidatorUtilities.findTrustAnchor((X509Certificate) certs.get(certs.size() - 1), 155 throw new CertPathValidatorException(e.getMessage(), e, certPath, certs.size() - 1); 292 && !paramsPKIX.getTargetConstraints().match((X509Certificate) certs.get(0))) 310 for (index = certs.size() - 1; index >= 0; index--) 334 cert = (X509Certificate) certs [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
H A D | CertificateFactory3Test.java | 90 Certificate[] certs = new Certificate[3]; 92 certs[i] = certFs[i].generateCertificate(new ByteArrayInputStream( 95 assertEquals(certs[0], certs[1]); 96 assertEquals(certs[0], certs[2]);
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
H A D | CMSUtils.java | 59 List certs = new ArrayList(); 67 certs.add(c.toASN1Structure()); 70 return certs; 74 throw new CMSException("error processing certs", e); 81 List certs = new ArrayList(); 89 certs.add(new DERTaggedObject(false, 2, attrCert.toASN1Structure())); 92 return certs; 96 throw new CMSException("error processing certs", e); 138 throw new CMSException("error processing certs", e);
|
H A D | CMSSignedGenerator.java | 86 protected List certs = new ArrayList(); field in class:CMSSignedGenerator 118 certs.add(certificate.toASN1Structure()); 131 certs.addAll(CMSUtils.getCertificatesFromStore(certStore)); 167 certs.add(new DERTaggedObject(false, 2, attrCert.toASN1Structure())); 180 certs.addAll(CMSUtils.getAttributeCertificatesFromStore(attrStore));
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/ |
H A D | CertificateFactory_ImplTest.java | 353 private void verifyCertificates(Collection certs) throws Exception { argument 356 for (Iterator it = certs.iterator(); it.hasNext(); ) { 554 Collection certs = 556 assertNotNull("Factory returned null on correct data", certs); 558 expected_size, certs.size()); 559 verifyCertificates(certs); 586 Collection certs = factory.generateCertificates(bais); 587 assertNotNull("Factory returned null on correct PKCS7 data", certs); 589 2, certs.size()); 592 for (Iterator it = certs [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
H A D | KeyStore_Impl1Test.java | 459 KeyStoreTestSupport.MCertificate certs[] = { 466 certs); 502 certs.length); 504 assertEquals("Incorrect CertificateChain", cc[t], certs[t]); 519 certs.length); 521 assertEquals("Incorrect CertificateChain", cc[t], certs[t]); 725 KeyStoreTestSupport.MCertificate certs[] = { 741 kss[i].setKeyEntry("ZZZ", null, pwd, certs); 760 kss[i].setKeyEntry(aliases[j], key, pwd, certs); 763 kss[i].setKeyEntry("KeyAlias", key, pwd, certs); [all...] |
/external/boringssl/src/crypto/x509/ |
H A D | pkcs7.c | 293 const STACK_OF(X509) *certs = arg; 303 for (i = 0; i < sk_X509_num(certs); i++) { 304 X509 *x509 = sk_X509_value(certs, i); 318 int PKCS7_bundle_certificates(CBB *out, const STACK_OF(X509) *certs) { argument 319 return pkcs7_bundle(out, pkcs7_bundle_certificates_cb, certs);
|
/external/ipsec-tools/src/racoon/ |
H A D | eaytest.c | 225 char **certs; local 339 /* get certs */ 342 certs = getcerts(certpath); 347 "issuer's certs in your environment.\n\n"); 349 certpath = "/usr/local/openssl/certs"; 350 certs = getcerts(NULL); 354 "issuer's certs in your environment\nso not doing " 360 while (*certs != NULL) { 368 c.v = *certs; 369 c.l = strlen(*certs); 415 char **certs = NULL, **p; local [all...] |
/external/jetty/src/java/org/eclipse/jetty/security/authentication/ |
H A D | ClientCertAuthenticator.java | 65 /** Maximum certification path length (n - number of intermediate certs, -1 for unlimited) */ 97 X509Certificate[] certs = (X509Certificate[]) request.getAttribute("javax.servlet.request.X509Certificate"); 102 if (certs != null && certs.length > 0) 112 validator.validate(certs); 115 for (X509Certificate cert: certs)
|
/external/nist-pkits/ |
H A D | extract-pkits-tests.pl | 70 push(@usedFiles, "certs/" . $certName); 83 String[] certs = { 104 assertValidPath(trustAnchor, certs, crls); 108 assertInvalidPath(trustAnchor, certs, crls);
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
H A D | KSPrivateKeyEntryTest.java | 70 Certificate[] certs = new MyCertificate[1];//new Certificate[1]; 73 new KeyStore.PrivateKeyEntry(pk, certs);
|