/external/chromium/third_party/libjingle/source/talk/base/ |
openssladapter.cc | 628 X509* certificate = SSL_get_peer_certificate(ssl); 629 if (!certificate) 634 LOG(LS_INFO) << "Certificate from server:"; 636 X509_print_ex(mem, certificate, XN_FLAG_SEP_CPLUS_SPC, X509_FLAG_NO_HEADER); 651 int extension_count = X509_get_ext_count(certificate); 653 X509_EXTENSION* extension = X509_get_ext(certificate, i); 713 && (subject = X509_get_subject_name(certificate)) 721 X509_free(certificate); 724 LOG(LS_WARNING) << "TLS certificate check FAILED. " 788 LOG(LS_INFO) << "Error with certificate at depth: " << depth [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
KeyManagerFactoryTest.java | 26 import java.security.cert.Certificate; 242 X509Certificate certificate = certificateChain[0]; local 243 assertEquals(keyType, keyAlgName, certificate.getPublicKey().getAlgorithm()); 248 String actualSigAlgName = certificate.getSigAlgName().toUpperCase(); 257 Arrays.<Certificate>asList(privateKeyEntry.getCertificateChain()), 258 Arrays.<Certificate>asList(certificateChain));
|
/build/core/ |
package.mk | 362 # an explicit certificate, use the default. 377 # If this is not an absolute certificate, assign it to a generic one. 382 certificate := $(LOCAL_CERTIFICATE).x509.pem macro 384 $(LOCAL_BUILT_MODULE): $(private_key) $(certificate) $(SIGNAPK_JAR) 386 $(LOCAL_BUILT_MODULE): PRIVATE_CERTIFICATE := $(certificate) 389 PACKAGES.$(LOCAL_PACKAGE_NAME).CERTIFICATE := $(certificate)
|
product_config.mk | 318 only 1 certificate is allowed.)
|
/frameworks/base/tests/CoreTests/android/core/ |
TestEventHandler.java | 445 * Implements the EventHandler certificate method called every 448 public void certificate(SslCertificate certificate) {} method in class:TestEventHandler 496 * SSL certificate error callback. Handles SSL error(s) on the way 505 " certificate: " + error.getCertificate()); 510 expectDetails.append("SSL Certificate error event received "+ 527 if (expectSslErrors == -1) // && expectSslCertificate == certificate? 730 public void expectSSLCertificateError(SslCertificate certificate) { 732 expectCertificate = certificate;
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
Identity2Test.java | 46 public static class CertificateImpl implements java.security.Certificate { 85 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:Identity2Test 99 + "-----END CERTIFICATE-----\n"; 103 String certificate2 = "-----BEGIN CERTIFICATE-----\n" 117 + "-----END CERTIFICATE-----\n"; 123 certArray = new ByteArrayInputStream(certificate 223 java.security.Certificate[] certs = sub.certificates(); 224 assertEquals("Certificate not contained in the identity", 229 * @tests java.security.Identity#addCertificate(java.security.Certificate) [all...] |
KeyStore2Test.java | 38 import java.security.cert.Certificate; 70 // creating a certificate 71 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:KeyStore2Test 85 + "-----END CERTIFICATE-----\n"; 87 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 90 String certificate2 = "-----BEGIN CERTIFICATE-----\n" 104 + "-----END CERTIFICATE-----\n"; 109 String certificate3 = "-----BEGIN CERTIFICATE-----\n" 128 + "-----END CERTIFICATE-----\n" [all...] |
/external/chromium/third_party/libjingle/source/talk/session/tunnel/ |
securetunnelsessionclient.cc | 60 // client and server certificate, PEM encoded. 91 // The name on the certificate does not matter: the peer will 116 // Parses a certificate from a PEM encoded string. 154 // Validate the certificate 181 // -----BEGIN CERTIFICATE----- 182 // INITIATOR'S CERTIFICATE IN PERM FORMAT (ASCII GIBBERISH) 183 // -----END CERTIFICATE----- 190 // The session accept iq, containing the recipient's certificate and 191 // echoing the initiator's certificate, looks something like this: 201 // -----BEGIN CERTIFICATE---- [all...] |
/external/smack/src/org/jivesoftware/smack/ |
ServerTrustManager.java | 109 // Working down the chain, for every certificate in the chain, 110 // verify that the subject of the certificate is the issuer of the 111 // next certificate in the chain. 139 // Verify that the the last certificate in the chain was issued 146 System.out.println("Accepting self-signed certificate of remote server: " + 155 throw new CertificateException("root certificate not trusted of " + peerIdentities); 160 // Verify that the first certificate in the chain corresponds to 162 // Check if the certificate uses a wildcard indicating that subdomains are valid 177 // For every certificate in the chain, verify that the certificate [all...] |
/frameworks/base/core/java/android/net/http/ |
HttpsConnection.java | 148 * Sets the server SSL certificate associated with this 150 * @param certificate The SSL certificate 152 /* package */ void setCertificate(SslCertificate certificate) { 153 mCertificate = certificate; 316 // allow the certificate anyway.
|
Connection.java | 62 * The server SSL certificate associated with this connection 64 * It would be nice to store the whole certificate chain, but 136 * @return The server SSL certificate associated with this 226 * know of any associated certificate, 229 req.mEventHandler.certificate(mCertificate); 356 // reset the certificate to null before opening a connection
|
/external/apache-harmony/security/src/test/impl/java.injected/java/security/cert/ |
X509CertSelectorTest.java | 420 // Certificate Policies Extension (as specified in rfc 3280) 449 * setCertificate(X509Certificate certificate) method testing. 454 TestCert cert_1 = new TestCert("same certificate"); 455 TestCert cert_2 = new TestCert("other certificate"); 463 assertTrue("The certificate should match the selection criteria.", 465 assertFalse("The certificate should not match the selection criteria.", 468 assertTrue("The certificate should match the selection criteria.", 478 TestCert cert_1 = new TestCert("same certificate"); 479 TestCert cert_2 = new TestCert("other certificate"); 484 assertEquals("The returned certificate should be equal to specified" 1806 TestCert certificate = new TestCert(alt_names_extension); local 1958 TestCert certificate = new TestCert(alt_names_extension); local 2036 TestCert certificate = new TestCert(alt_names_extension); local 2145 org.apache.harmony.security.x509.Certificate certificate = local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/ |
ExportHelper.java | 87 * @param certificate the certificate used for signing. Can be null. 92 X509Certificate certificate, IProgressMonitor monitor) throws CoreException { 101 // if either key or certificate is null, ensure the other is null. 103 certificate = null; 104 } else if (certificate == null) { 290 certificate, local 368 null, //certificate
|
/external/openssl/apps/ |
openssl.cnf | 3 # This is mostly being used for generation of certificate requests. 50 certificate = $dir/cacert.pem # The CA certificate 63 cert_opt = ca_default # Certificate field options 125 # req_extensions = v3_req # The extensions to add to a certificate request 168 # requires this to avoid interpreting an end user certificate as a CA. 173 # the certificate can be used for anything *except* object signing. 178 # For an object signing certificate this would be used. 187 # This is typical in keyUsage for a client certificate. 191 nsComment = "OpenSSL Generated Certificate" [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
Identity2Test.java | 24 import java.security.Certificate; 46 public static class CertificateImpl implements java.security.Certificate { 85 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:Identity2Test 99 + "-----END CERTIFICATE-----\n"; 101 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate.getBytes()); 103 String certificate2 = "-----BEGIN CERTIFICATE-----\n" 117 + "-----END CERTIFICATE-----\n"; 254 java.security.Certificate[] certs = sub.certificates(); 255 assertEquals("Certificate not contained in the identity" [all...] |
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
TestSSLContext.java | 26 import java.security.cert.Certificate; 132 * SSLContext with certificate and key as well as SSLServerSocket 198 * certificate chain from the given KeyStore and a TrustManager 232 public static void assertCertificateInKeyStore(Certificate certificate, 239 Certificate keyStoreCertificate = keyStore.getCertificate(alias); 240 if (certificate.equals(keyStoreCertificate)) { 249 Certificate[] serverChain) 256 Certificate[] clientChain)
|
/packages/apps/Browser/src/com/android/browser/ |
PageDialogsHandler.java | 130 * this dialog was opened from the SSL-certificate-on-error dialog or 203 // if we have a main top-level page SSL certificate set or a certificate 207 // add a 'View Certificate' button 224 // otherwise, display the top-most certificate from 236 * Displays the main top-level page SSL certificate dialog 238 * @param tab The tab to show certificate for. 272 * Displays the SSL error certificate dialog. 336 * Creates an AlertDialog to display the given certificate. If error is 339 * certificate. In this case, error is used to add text describing th [all...] |
/libcore/luni/src/main/java/java/security/cert/ |
X509CertSelector.java | 47 * A certificate selector ({@code CertSelector} for selecting {@code 83 * Sets the certificate that a matching certificate must be equal to. 85 * @param certificate 86 * the certificate to match, or null to not check this criteria. 88 public void setCertificate(X509Certificate certificate) { 89 certificateEquals = certificate; 93 * Returns the certificate that a matching certificate must be equal to. 95 * @return the certificate to match, or null if this criteria is no [all...] |
/external/openssl/crypto/store/ |
str_lib.c | 72 "X.509 Certificate", 265 if (!object || !object->data.x509.certificate) 271 CRYPTO_add(&object->data.x509.certificate->references,1,CRYPTO_LOCK_X509); 275 x = object->data.x509.certificate; 301 object->data.x509.certificate = data; 395 if (!object || !object->data.x509.certificate) 401 CRYPTO_add(&object->data.x509.certificate->references,1,CRYPTO_LOCK_X509); 405 x = object->data.x509.certificate; 1240 X509_free(data->data.x509.certificate); [all...] |
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
HandshakeCompletedEventTest.java | 27 import java.security.cert.Certificate; 52 private String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:HandshakeCompletedEventTest 66 + "-----END CERTIFICATE-----\n"; 122 ByteArrayInputStream bis = new ByteArrayInputStream(certificate.getBytes()); 157 Certificate[] res = event.getPeerCertificates(); 556 * Implements basically a dummy TrustManager. It stores the certificate
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/export/ |
ExportWizard.java | 61 * Export wizard to export an apk signed with a release key/certificate. 264 // keystore is created, now load the private key and certificate. 279 "Certificate fingerprints:", 291 // check the private key/certificate again since it may have been created just above. 336 // a private key/certificate or the creation mode. In creation mode, unless 499 void setSigningInfo(PrivateKey privateKey, X509Certificate certificate) { 501 mCertificate = certificate;
|
/frameworks/base/core/java/android/webkit/ |
WebViewProvider.java | 78 public void setCertificate(SslCertificate certificate);
|
HTML5VideoViewProxy.java | 546 public void certificate(SslCertificate certificate) { method in class:HTML5VideoViewProxy.PosterDownloader
|
/external/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
HttpResponseCache.java | 46 import java.security.cert.Certificate; 336 private final Certificate[] peerCertificates; 337 private final Certificate[] localCertificates; 382 * is the length of the peer certificate chain. These certificates are 384 * contains the length of the local certificate chain. These 434 Certificate[] peerCertificatesNonFinal = null; 478 private Certificate[] readCertArray(StrictLineReader reader) throws IOException { 485 Certificate[] result = new Certificate[length]; 497 private void writeCertArray(Writer writer, Certificate[] certificates) throws IOException [all...] |
/libcore/luni/src/main/java/libcore/net/http/ |
HttpResponseCache.java | 42 import java.security.cert.Certificate; 320 private final Certificate[] peerCertificates; 321 private final Certificate[] localCertificates; 363 * is the length of the peer certificate chain. These certificates are 365 * contains the length of the local certificate chain. These 414 Certificate[] peerCertificatesNonFinal = null; 460 private Certificate[] readCertArray(StrictLineReader reader) throws IOException { 467 Certificate[] result = new Certificate[length]; 480 private void writeCertArray(Writer writer, Certificate[] certificates) throws IOException [all...] |