| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc (build 1.5.0_22) on Sun Oct 21 11:03:14 GMT+01:00 2012 --> |
| <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <TITLE> |
| SSLSocketFactory (HttpComponents Client 4.2.2 API) |
| </TITLE> |
| |
| <META NAME="keywords" CONTENT="org.apache.http.conn.ssl.SSLSocketFactory class"> |
| |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> |
| |
| <SCRIPT type="text/javascript"> |
| function windowTitle() |
| { |
| parent.document.title="SSLSocketFactory (HttpComponents Client 4.2.2 API)"; |
| } |
| </SCRIPT> |
| <NOSCRIPT> |
| </NOSCRIPT> |
| |
| </HEAD> |
| |
| <BODY BGCOLOR="white" onload="windowTitle();"> |
| |
| |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <A NAME="navbar_top"><!-- --></A> |
| <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SSLSocketFactory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../org/apache/http/conn/ssl/SSLInitializationException.html" title="class in org.apache.http.conn.ssl"><B>PREV CLASS</B></A> |
| <A HREF="../../../../../org/apache/http/conn/ssl/StrictHostnameVerifier.html" title="class in org.apache.http.conn.ssl"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../index.html?org/apache/http/conn/ssl/SSLSocketFactory.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="SSLSocketFactory.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_top"></A> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.apache.http.conn.ssl</FONT> |
| <BR> |
| Class SSLSocketFactory</H2> |
| <PRE> |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A> |
| <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.http.conn.ssl.SSLSocketFactory</B> |
| </PRE> |
| <DL> |
| <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/http/conn/scheme/LayeredSchemeSocketFactory.html" title="interface in org.apache.http.conn.scheme">LayeredSchemeSocketFactory</A>, <A HREF="../../../../../org/apache/http/conn/scheme/LayeredSocketFactory.html" title="interface in org.apache.http.conn.scheme">LayeredSocketFactory</A>, <A HREF="../../../../../org/apache/http/conn/scheme/SchemeLayeredSocketFactory.html" title="interface in org.apache.http.conn.scheme">SchemeLayeredSocketFactory</A>, <A HREF="../../../../../org/apache/http/conn/scheme/SchemeSocketFactory.html" title="interface in org.apache.http.conn.scheme">SchemeSocketFactory</A>, <A HREF="../../../../../org/apache/http/conn/scheme/SocketFactory.html" title="interface in org.apache.http.conn.scheme">SocketFactory</A></DD> |
| </DL> |
| <HR> |
| <DL> |
| <DT><PRE><FONT SIZE="-1"><A HREF="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/annotation/ThreadSafe.html" title="class or interface in org.apache.http.annotation">@ThreadSafe</A> |
| </FONT>public class <B>SSLSocketFactory</B><DT>extends <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../../org/apache/http/conn/scheme/SchemeLayeredSocketFactory.html" title="interface in org.apache.http.conn.scheme">SchemeLayeredSocketFactory</A>, <A HREF="../../../../../org/apache/http/conn/scheme/LayeredSchemeSocketFactory.html" title="interface in org.apache.http.conn.scheme">LayeredSchemeSocketFactory</A>, <A HREF="../../../../../org/apache/http/conn/scheme/LayeredSocketFactory.html" title="interface in org.apache.http.conn.scheme">LayeredSocketFactory</A></DL> |
| </PRE> |
| |
| <P> |
| Layered socket factory for TLS/SSL connections. |
| <p> |
| SSLSocketFactory can be used to validate the identity of the HTTPS server against a list of |
| trusted certificates and to authenticate to the HTTPS server using a private key. |
| <p> |
| SSLSocketFactory will enable server authentication when supplied with |
| a <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security"><CODE>trust-store</CODE></A> file containing one or several trusted certificates. The client |
| secure socket will reject the connection during the SSL session handshake if the target HTTPS |
| server attempts to authenticate itself with a non-trusted certificate. |
| <p> |
| Use JDK keytool utility to import a trusted certificate and generate a trust-store file: |
| <pre> |
| keytool -import -alias "my server cert" -file server.crt -keystore my.truststore |
| </pre> |
| <p> |
| In special cases the standard trust verification process can be bypassed by using a custom |
| <A HREF="../../../../../org/apache/http/conn/ssl/TrustStrategy.html" title="interface in org.apache.http.conn.ssl"><CODE>TrustStrategy</CODE></A>. This interface is primarily intended for allowing self-signed |
| certificates to be accepted as trusted without having to add them to the trust-store file. |
| <p> |
| The following parameters can be used to customize the behavior of this |
| class: |
| <ul> |
| <li><A HREF="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/params/CoreConnectionPNames.html#CONNECTION_TIMEOUT" title="class or interface in org.apache.http.params"><CODE>CoreConnectionPNames.CONNECTION_TIMEOUT</CODE></A></li> |
| <li><A HREF="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/params/CoreConnectionPNames.html#SO_TIMEOUT" title="class or interface in org.apache.http.params"><CODE>CoreConnectionPNames.SO_TIMEOUT</CODE></A></li> |
| <li><A HREF="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/params/CoreConnectionPNames.html#SO_REUSEADDR" title="class or interface in org.apache.http.params"><CODE>CoreConnectionPNames.SO_REUSEADDR</CODE></A></li> |
| </ul> |
| <p> |
| SSLSocketFactory will enable client authentication when supplied with |
| a <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security"><CODE>key-store</CODE></A> file containing a private key/public certificate |
| pair. The client secure socket will use the private key to authenticate |
| itself to the target HTTPS server during the SSL session handshake if |
| requested to do so by the server. |
| The target HTTPS server will in its turn verify the certificate presented |
| by the client in order to establish client's authenticity |
| <p> |
| Use the following sequence of actions to generate a key-store file |
| </p> |
| <ul> |
| <li> |
| <p> |
| Use JDK keytool utility to generate a new key |
| <pre>keytool -genkey -v -alias "my client key" -validity 365 -keystore my.keystore</pre> |
| For simplicity use the same password for the key as that of the key-store |
| </p> |
| </li> |
| <li> |
| <p> |
| Issue a certificate signing request (CSR) |
| <pre>keytool -certreq -alias "my client key" -file mycertreq.csr -keystore my.keystore</pre> |
| </p> |
| </li> |
| <li> |
| <p> |
| Send the certificate request to the trusted Certificate Authority for signature. |
| One may choose to act as her own CA and sign the certificate request using a PKI |
| tool, such as OpenSSL. |
| </p> |
| </li> |
| <li> |
| <p> |
| Import the trusted CA root certificate |
| <pre>keytool -import -alias "my trusted ca" -file caroot.crt -keystore my.keystore</pre> |
| </p> |
| </li> |
| <li> |
| <p> |
| Import the PKCS#7 file containg the complete certificate chain |
| <pre>keytool -import -alias "my client key" -file mycert.p7 -keystore my.keystore</pre> |
| </p> |
| </li> |
| <li> |
| <p> |
| Verify the content the resultant keystore file |
| <pre>keytool -list -v -keystore my.keystore</pre> |
| </p> |
| </li> |
| </ul> |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>4.0</DD> |
| </DL> |
| <HR> |
| |
| <P> |
| <!-- =========== FIELD SUMMARY =========== --> |
| |
| <A NAME="field_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Field Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#ALLOW_ALL_HOSTNAME_VERIFIER">ALLOW_ALL_HOSTNAME_VERIFIER</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#BROWSER_COMPATIBLE_HOSTNAME_VERIFIER">BROWSER_COMPATIBLE_HOSTNAME_VERIFIER</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#SSL">SSL</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#SSLV2">SSLV2</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#STRICT_HOSTNAME_VERIFIER">STRICT_HOSTNAME_VERIFIER</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#TLS">TLS</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Constructor Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#SSLSocketFactory(java.security.KeyStore)">SSLSocketFactory</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> truststore)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#SSLSocketFactory(java.security.KeyStore, java.lang.String)">SSLSocketFactory</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> keystore, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> keystorePassword)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#SSLSocketFactory(java.security.KeyStore, java.lang.String, java.security.KeyStore)">SSLSocketFactory</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> keystore, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> keystorePassword, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> truststore)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#SSLSocketFactory(javax.net.ssl.SSLContext)">SSLSocketFactory</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/net/ssl/SSLContext.html" title="class or interface in javax.net.ssl">SSLContext</A> sslContext)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#SSLSocketFactory(javax.net.ssl.SSLContext, org.apache.http.conn.scheme.HostNameResolver)">SSLSocketFactory</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/net/ssl/SSLContext.html" title="class or interface in javax.net.ssl">SSLContext</A> sslContext, |
| <A HREF="../../../../../org/apache/http/conn/scheme/HostNameResolver.html" title="interface in org.apache.http.conn.scheme">HostNameResolver</A> nameResolver)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>Use <A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#SSLSocketFactory(javax.net.ssl.SSLContext)"><CODE>SSLSocketFactory(SSLContext)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#SSLSocketFactory(javax.net.ssl.SSLContext, org.apache.http.conn.ssl.X509HostnameVerifier)">SSLSocketFactory</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/net/ssl/SSLContext.html" title="class or interface in javax.net.ssl">SSLContext</A> sslContext, |
| <A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A> hostnameVerifier)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#SSLSocketFactory(javax.net.ssl.SSLSocketFactory, org.apache.http.conn.ssl.X509HostnameVerifier)">SSLSocketFactory</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/net/ssl/SSLSocketFactory.html" title="class or interface in javax.net.ssl">SSLSocketFactory</A> socketfactory, |
| <A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A> hostnameVerifier)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#SSLSocketFactory(java.lang.String, java.security.KeyStore, java.lang.String, java.security.KeyStore, java.security.SecureRandom, org.apache.http.conn.scheme.HostNameResolver)">SSLSocketFactory</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> algorithm, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> keystore, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> keystorePassword, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> truststore, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/SecureRandom.html" title="class or interface in java.security">SecureRandom</A> random, |
| <A HREF="../../../../../org/apache/http/conn/scheme/HostNameResolver.html" title="interface in org.apache.http.conn.scheme">HostNameResolver</A> nameResolver)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>Use <A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#SSLSocketFactory(java.lang.String, java.security.KeyStore, java.lang.String, java.security.KeyStore, java.security.SecureRandom, org.apache.http.conn.ssl.X509HostnameVerifier)"><CODE>SSLSocketFactory(String, KeyStore, String, KeyStore, SecureRandom, X509HostnameVerifier)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#SSLSocketFactory(java.lang.String, java.security.KeyStore, java.lang.String, java.security.KeyStore, java.security.SecureRandom, org.apache.http.conn.ssl.TrustStrategy, org.apache.http.conn.ssl.X509HostnameVerifier)">SSLSocketFactory</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> algorithm, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> keystore, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> keystorePassword, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> truststore, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/SecureRandom.html" title="class or interface in java.security">SecureRandom</A> random, |
| <A HREF="../../../../../org/apache/http/conn/ssl/TrustStrategy.html" title="interface in org.apache.http.conn.ssl">TrustStrategy</A> trustStrategy, |
| <A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A> hostnameVerifier)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#SSLSocketFactory(java.lang.String, java.security.KeyStore, java.lang.String, java.security.KeyStore, java.security.SecureRandom, org.apache.http.conn.ssl.X509HostnameVerifier)">SSLSocketFactory</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> algorithm, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> keystore, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> keystorePassword, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> truststore, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/SecureRandom.html" title="class or interface in java.security">SecureRandom</A> random, |
| <A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A> hostnameVerifier)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#SSLSocketFactory(org.apache.http.conn.ssl.TrustStrategy)">SSLSocketFactory</A></B>(<A HREF="../../../../../org/apache/http/conn/ssl/TrustStrategy.html" title="interface in org.apache.http.conn.ssl">TrustStrategy</A> trustStrategy)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#SSLSocketFactory(org.apache.http.conn.ssl.TrustStrategy, org.apache.http.conn.ssl.X509HostnameVerifier)">SSLSocketFactory</A></B>(<A HREF="../../../../../org/apache/http/conn/ssl/TrustStrategy.html" title="interface in org.apache.http.conn.ssl">TrustStrategy</A> trustStrategy, |
| <A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A> hostnameVerifier)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#connectSocket(java.net.Socket, java.net.InetSocketAddress, java.net.InetSocketAddress, org.apache.http.params.HttpParams)">connectSocket</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> socket, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/InetSocketAddress.html" title="class or interface in java.net">InetSocketAddress</A> remoteAddress, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/InetSocketAddress.html" title="class or interface in java.net">InetSocketAddress</A> localAddress, |
| <A HREF="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/params/HttpParams.html" title="class or interface in org.apache.http.params">HttpParams</A> params)</CODE> |
| |
| <BR> |
| Connects a socket to the target host with the given remote address.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#connectSocket(java.net.Socket, java.lang.String, int, java.net.InetAddress, int, org.apache.http.params.HttpParams)">connectSocket</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> socket, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> host, |
| int port, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/InetAddress.html" title="class or interface in java.net">InetAddress</A> localAddress, |
| int localPort, |
| <A HREF="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/params/HttpParams.html" title="class or interface in org.apache.http.params">HttpParams</A> params)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>Use <A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#connectSocket(java.net.Socket, java.net.InetSocketAddress, java.net.InetSocketAddress, org.apache.http.params.HttpParams)"><CODE>connectSocket(Socket, InetSocketAddress, InetSocketAddress, HttpParams)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#createLayeredSocket(java.net.Socket, java.lang.String, int, boolean)">createLayeredSocket</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> socket, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> host, |
| int port, |
| boolean autoClose)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>use <A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#createLayeredSocket(java.net.Socket, java.lang.String, int, org.apache.http.params.HttpParams)"><CODE>createLayeredSocket(Socket, String, int, HttpParams)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#createLayeredSocket(java.net.Socket, java.lang.String, int, org.apache.http.params.HttpParams)">createLayeredSocket</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> socket, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> host, |
| int port, |
| <A HREF="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/params/HttpParams.html" title="class or interface in org.apache.http.params">HttpParams</A> params)</CODE> |
| |
| <BR> |
| Returns a socket connected to the given host that is layered over an |
| existing socket.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#createSocket()">createSocket</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#createSocket(org.apache.http.params.HttpParams)">createSocket</A></B>(<A HREF="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/params/HttpParams.html" title="class or interface in org.apache.http.params">HttpParams</A> params)</CODE> |
| |
| <BR> |
| Creates a new, unconnected socket.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#createSocket(java.net.Socket, java.lang.String, int, boolean)">createSocket</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> socket, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> host, |
| int port, |
| boolean autoClose)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>Use <A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#createLayeredSocket(java.net.Socket, java.lang.String, int, boolean)"><CODE>createLayeredSocket(Socket, String, int, boolean)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#getHostnameVerifier()">getHostnameVerifier</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html" title="class in org.apache.http.conn.ssl">SSLSocketFactory</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#getSocketFactory()">getSocketFactory</A></B>()</CODE> |
| |
| <BR> |
| Gets the default factory, which uses the default JSSE settings for initializing |
| the SSL context.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html" title="class in org.apache.http.conn.ssl">SSLSocketFactory</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#getSystemSocketFactory()">getSystemSocketFactory</A></B>()</CODE> |
| |
| <BR> |
| Gets the default factory, which uses system properties for initializing the SSL context |
| as described in |
| <a href="http://docs.oracle.com/javase/1.5.0/docs/guide/security/jsse/JSSERefGuide.html"> |
| "JavaTM Secure Socket Extension (JSSE) Reference Guide for the JavaTM 2 Platform |
| Standard Edition 5</a></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#isSecure(java.net.Socket)">isSecure</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> sock)</CODE> |
| |
| <BR> |
| Checks whether a socket connection is secure.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#prepareSocket(javax.net.ssl.SSLSocket)">prepareSocket</A></B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/net/ssl/SSLSocket.html" title="class or interface in javax.net.ssl">SSLSocket</A> socket)</CODE> |
| |
| <BR> |
| Performs any custom initialization for a newly created SSLSocket |
| (before the SSL handshake happens).</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#setHostnameVerifier(org.apache.http.conn.ssl.X509HostnameVerifier)">setHostnameVerifier</A></B>(<A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A> hostnameVerifier)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <P> |
| |
| <!-- ============ FIELD DETAIL =========== --> |
| |
| <A NAME="field_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Field Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="TLS"><!-- --></A><H3> |
| TLS</H3> |
| <PRE> |
| public static final <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>TLS</B></PRE> |
| <DL> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.http.conn.ssl.SSLSocketFactory.TLS">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="SSL"><!-- --></A><H3> |
| SSL</H3> |
| <PRE> |
| public static final <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>SSL</B></PRE> |
| <DL> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.http.conn.ssl.SSLSocketFactory.SSL">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="SSLV2"><!-- --></A><H3> |
| SSLV2</H3> |
| <PRE> |
| public static final <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>SSLV2</B></PRE> |
| <DL> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.http.conn.ssl.SSLSocketFactory.SSLV2">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="ALLOW_ALL_HOSTNAME_VERIFIER"><!-- --></A><H3> |
| ALLOW_ALL_HOSTNAME_VERIFIER</H3> |
| <PRE> |
| public static final <A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A> <B>ALLOW_ALL_HOSTNAME_VERIFIER</B></PRE> |
| <DL> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="BROWSER_COMPATIBLE_HOSTNAME_VERIFIER"><!-- --></A><H3> |
| BROWSER_COMPATIBLE_HOSTNAME_VERIFIER</H3> |
| <PRE> |
| public static final <A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A> <B>BROWSER_COMPATIBLE_HOSTNAME_VERIFIER</B></PRE> |
| <DL> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="STRICT_HOSTNAME_VERIFIER"><!-- --></A><H3> |
| STRICT_HOSTNAME_VERIFIER</H3> |
| <PRE> |
| public static final <A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A> <B>STRICT_HOSTNAME_VERIFIER</B></PRE> |
| <DL> |
| <DL> |
| </DL> |
| </DL> |
| |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| |
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Constructor Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="SSLSocketFactory(java.lang.String, java.security.KeyStore, java.lang.String, java.security.KeyStore, java.security.SecureRandom, org.apache.http.conn.scheme.HostNameResolver)"><!-- --></A><H3> |
| SSLSocketFactory</H3> |
| <PRE> |
| <FONT SIZE="-1"><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Deprecated.html" title="class or interface in java.lang">@Deprecated</A> |
| </FONT>public <B>SSLSocketFactory</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> algorithm, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> keystore, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> keystorePassword, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> truststore, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/SecureRandom.html" title="class or interface in java.security">SecureRandom</A> random, |
| <A HREF="../../../../../org/apache/http/conn/scheme/HostNameResolver.html" title="interface in org.apache.http.conn.scheme">HostNameResolver</A> nameResolver) |
| throws <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security">NoSuchAlgorithmException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyManagementException.html" title="class or interface in java.security">KeyManagementException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStoreException.html" title="class or interface in java.security">KeyStoreException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/UnrecoverableKeyException.html" title="class or interface in java.security">UnrecoverableKeyException</A></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>Use <A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#SSLSocketFactory(java.lang.String, java.security.KeyStore, java.lang.String, java.security.KeyStore, java.security.SecureRandom, org.apache.http.conn.ssl.X509HostnameVerifier)"><CODE>SSLSocketFactory(String, KeyStore, String, KeyStore, SecureRandom, X509HostnameVerifier)</CODE></A></I> |
| <P> |
| <DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security">NoSuchAlgorithmException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyManagementException.html" title="class or interface in java.security">KeyManagementException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStoreException.html" title="class or interface in java.security">KeyStoreException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/UnrecoverableKeyException.html" title="class or interface in java.security">UnrecoverableKeyException</A></CODE></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="SSLSocketFactory(java.lang.String, java.security.KeyStore, java.lang.String, java.security.KeyStore, java.security.SecureRandom, org.apache.http.conn.ssl.X509HostnameVerifier)"><!-- --></A><H3> |
| SSLSocketFactory</H3> |
| <PRE> |
| public <B>SSLSocketFactory</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> algorithm, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> keystore, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> keystorePassword, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> truststore, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/SecureRandom.html" title="class or interface in java.security">SecureRandom</A> random, |
| <A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A> hostnameVerifier) |
| throws <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security">NoSuchAlgorithmException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyManagementException.html" title="class or interface in java.security">KeyManagementException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStoreException.html" title="class or interface in java.security">KeyStoreException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/UnrecoverableKeyException.html" title="class or interface in java.security">UnrecoverableKeyException</A></PRE> |
| <DL> |
| <DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security">NoSuchAlgorithmException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyManagementException.html" title="class or interface in java.security">KeyManagementException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStoreException.html" title="class or interface in java.security">KeyStoreException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/UnrecoverableKeyException.html" title="class or interface in java.security">UnrecoverableKeyException</A></CODE><DT><B>Since:</B></DT> |
| <DD>4.1</DD> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="SSLSocketFactory(java.lang.String, java.security.KeyStore, java.lang.String, java.security.KeyStore, java.security.SecureRandom, org.apache.http.conn.ssl.TrustStrategy, org.apache.http.conn.ssl.X509HostnameVerifier)"><!-- --></A><H3> |
| SSLSocketFactory</H3> |
| <PRE> |
| public <B>SSLSocketFactory</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> algorithm, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> keystore, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> keystorePassword, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> truststore, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/SecureRandom.html" title="class or interface in java.security">SecureRandom</A> random, |
| <A HREF="../../../../../org/apache/http/conn/ssl/TrustStrategy.html" title="interface in org.apache.http.conn.ssl">TrustStrategy</A> trustStrategy, |
| <A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A> hostnameVerifier) |
| throws <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security">NoSuchAlgorithmException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyManagementException.html" title="class or interface in java.security">KeyManagementException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStoreException.html" title="class or interface in java.security">KeyStoreException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/UnrecoverableKeyException.html" title="class or interface in java.security">UnrecoverableKeyException</A></PRE> |
| <DL> |
| <DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security">NoSuchAlgorithmException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyManagementException.html" title="class or interface in java.security">KeyManagementException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStoreException.html" title="class or interface in java.security">KeyStoreException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/UnrecoverableKeyException.html" title="class or interface in java.security">UnrecoverableKeyException</A></CODE><DT><B>Since:</B></DT> |
| <DD>4.1</DD> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="SSLSocketFactory(java.security.KeyStore, java.lang.String, java.security.KeyStore)"><!-- --></A><H3> |
| SSLSocketFactory</H3> |
| <PRE> |
| public <B>SSLSocketFactory</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> keystore, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> keystorePassword, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> truststore) |
| throws <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security">NoSuchAlgorithmException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyManagementException.html" title="class or interface in java.security">KeyManagementException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStoreException.html" title="class or interface in java.security">KeyStoreException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/UnrecoverableKeyException.html" title="class or interface in java.security">UnrecoverableKeyException</A></PRE> |
| <DL> |
| <DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security">NoSuchAlgorithmException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyManagementException.html" title="class or interface in java.security">KeyManagementException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStoreException.html" title="class or interface in java.security">KeyStoreException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/UnrecoverableKeyException.html" title="class or interface in java.security">UnrecoverableKeyException</A></CODE></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="SSLSocketFactory(java.security.KeyStore, java.lang.String)"><!-- --></A><H3> |
| SSLSocketFactory</H3> |
| <PRE> |
| public <B>SSLSocketFactory</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> keystore, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> keystorePassword) |
| throws <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security">NoSuchAlgorithmException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyManagementException.html" title="class or interface in java.security">KeyManagementException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStoreException.html" title="class or interface in java.security">KeyStoreException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/UnrecoverableKeyException.html" title="class or interface in java.security">UnrecoverableKeyException</A></PRE> |
| <DL> |
| <DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security">NoSuchAlgorithmException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyManagementException.html" title="class or interface in java.security">KeyManagementException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStoreException.html" title="class or interface in java.security">KeyStoreException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/UnrecoverableKeyException.html" title="class or interface in java.security">UnrecoverableKeyException</A></CODE></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="SSLSocketFactory(java.security.KeyStore)"><!-- --></A><H3> |
| SSLSocketFactory</H3> |
| <PRE> |
| public <B>SSLSocketFactory</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html" title="class or interface in java.security">KeyStore</A> truststore) |
| throws <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security">NoSuchAlgorithmException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyManagementException.html" title="class or interface in java.security">KeyManagementException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStoreException.html" title="class or interface in java.security">KeyStoreException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/UnrecoverableKeyException.html" title="class or interface in java.security">UnrecoverableKeyException</A></PRE> |
| <DL> |
| <DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security">NoSuchAlgorithmException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyManagementException.html" title="class or interface in java.security">KeyManagementException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStoreException.html" title="class or interface in java.security">KeyStoreException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/UnrecoverableKeyException.html" title="class or interface in java.security">UnrecoverableKeyException</A></CODE></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="SSLSocketFactory(org.apache.http.conn.ssl.TrustStrategy, org.apache.http.conn.ssl.X509HostnameVerifier)"><!-- --></A><H3> |
| SSLSocketFactory</H3> |
| <PRE> |
| public <B>SSLSocketFactory</B>(<A HREF="../../../../../org/apache/http/conn/ssl/TrustStrategy.html" title="interface in org.apache.http.conn.ssl">TrustStrategy</A> trustStrategy, |
| <A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A> hostnameVerifier) |
| throws <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security">NoSuchAlgorithmException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyManagementException.html" title="class or interface in java.security">KeyManagementException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStoreException.html" title="class or interface in java.security">KeyStoreException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/UnrecoverableKeyException.html" title="class or interface in java.security">UnrecoverableKeyException</A></PRE> |
| <DL> |
| <DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security">NoSuchAlgorithmException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyManagementException.html" title="class or interface in java.security">KeyManagementException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStoreException.html" title="class or interface in java.security">KeyStoreException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/UnrecoverableKeyException.html" title="class or interface in java.security">UnrecoverableKeyException</A></CODE><DT><B>Since:</B></DT> |
| <DD>4.1</DD> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="SSLSocketFactory(org.apache.http.conn.ssl.TrustStrategy)"><!-- --></A><H3> |
| SSLSocketFactory</H3> |
| <PRE> |
| public <B>SSLSocketFactory</B>(<A HREF="../../../../../org/apache/http/conn/ssl/TrustStrategy.html" title="interface in org.apache.http.conn.ssl">TrustStrategy</A> trustStrategy) |
| throws <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security">NoSuchAlgorithmException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyManagementException.html" title="class or interface in java.security">KeyManagementException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStoreException.html" title="class or interface in java.security">KeyStoreException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/UnrecoverableKeyException.html" title="class or interface in java.security">UnrecoverableKeyException</A></PRE> |
| <DL> |
| <DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/NoSuchAlgorithmException.html" title="class or interface in java.security">NoSuchAlgorithmException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyManagementException.html" title="class or interface in java.security">KeyManagementException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/KeyStoreException.html" title="class or interface in java.security">KeyStoreException</A></CODE> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/security/UnrecoverableKeyException.html" title="class or interface in java.security">UnrecoverableKeyException</A></CODE><DT><B>Since:</B></DT> |
| <DD>4.1</DD> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="SSLSocketFactory(javax.net.ssl.SSLContext)"><!-- --></A><H3> |
| SSLSocketFactory</H3> |
| <PRE> |
| public <B>SSLSocketFactory</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/net/ssl/SSLContext.html" title="class or interface in javax.net.ssl">SSLContext</A> sslContext)</PRE> |
| <DL> |
| </DL> |
| <HR> |
| |
| <A NAME="SSLSocketFactory(javax.net.ssl.SSLContext, org.apache.http.conn.scheme.HostNameResolver)"><!-- --></A><H3> |
| SSLSocketFactory</H3> |
| <PRE> |
| <FONT SIZE="-1"><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Deprecated.html" title="class or interface in java.lang">@Deprecated</A> |
| </FONT>public <B>SSLSocketFactory</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/net/ssl/SSLContext.html" title="class or interface in javax.net.ssl">SSLContext</A> sslContext, |
| <A HREF="../../../../../org/apache/http/conn/scheme/HostNameResolver.html" title="interface in org.apache.http.conn.scheme">HostNameResolver</A> nameResolver)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>Use <A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#SSLSocketFactory(javax.net.ssl.SSLContext)"><CODE>SSLSocketFactory(SSLContext)</CODE></A></I> |
| <P> |
| </DL> |
| <HR> |
| |
| <A NAME="SSLSocketFactory(javax.net.ssl.SSLContext, org.apache.http.conn.ssl.X509HostnameVerifier)"><!-- --></A><H3> |
| SSLSocketFactory</H3> |
| <PRE> |
| public <B>SSLSocketFactory</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/net/ssl/SSLContext.html" title="class or interface in javax.net.ssl">SSLContext</A> sslContext, |
| <A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A> hostnameVerifier)</PRE> |
| <DL> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>4.1</DD> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="SSLSocketFactory(javax.net.ssl.SSLSocketFactory, org.apache.http.conn.ssl.X509HostnameVerifier)"><!-- --></A><H3> |
| SSLSocketFactory</H3> |
| <PRE> |
| public <B>SSLSocketFactory</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/net/ssl/SSLSocketFactory.html" title="class or interface in javax.net.ssl">SSLSocketFactory</A> socketfactory, |
| <A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A> hostnameVerifier)</PRE> |
| <DL> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>4.2</DD> |
| </DL> |
| </DL> |
| |
| <!-- ============ METHOD DETAIL ========== --> |
| |
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Method Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="getSocketFactory()"><!-- --></A><H3> |
| getSocketFactory</H3> |
| <PRE> |
| public static <A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html" title="class in org.apache.http.conn.ssl">SSLSocketFactory</A> <B>getSocketFactory</B>() |
| throws <A HREF="../../../../../org/apache/http/conn/ssl/SSLInitializationException.html" title="class in org.apache.http.conn.ssl">SSLInitializationException</A></PRE> |
| <DL> |
| <DD>Gets the default factory, which uses the default JSSE settings for initializing |
| the SSL context. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the default SSL socket factory |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../../org/apache/http/conn/ssl/SSLInitializationException.html" title="class in org.apache.http.conn.ssl">SSLInitializationException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getSystemSocketFactory()"><!-- --></A><H3> |
| getSystemSocketFactory</H3> |
| <PRE> |
| public static <A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html" title="class in org.apache.http.conn.ssl">SSLSocketFactory</A> <B>getSystemSocketFactory</B>() |
| throws <A HREF="../../../../../org/apache/http/conn/ssl/SSLInitializationException.html" title="class in org.apache.http.conn.ssl">SSLInitializationException</A></PRE> |
| <DL> |
| <DD>Gets the default factory, which uses system properties for initializing the SSL context |
| as described in |
| <a href="http://docs.oracle.com/javase/1.5.0/docs/guide/security/jsse/JSSERefGuide.html"> |
| "JavaTM Secure Socket Extension (JSSE) Reference Guide for the JavaTM 2 Platform |
| Standard Edition 5</a> |
| <p> |
| The following system properties are taken into account by this method: |
| <ul> |
| <li>ssl.TrustManagerFactory.algorithm</li> |
| <li>javax.net.ssl.trustStoreType</li> |
| <li>javax.net.ssl.trustStore</li> |
| <li>javax.net.ssl.trustStoreProvider</li> |
| <li>javax.net.ssl.trustStorePassword</li> |
| <li>java.home</li> |
| <li>ssl.KeyManagerFactory.algorithm</li> |
| <li>javax.net.ssl.keyStoreType</li> |
| <li>javax.net.ssl.keyStore</li> |
| <li>javax.net.ssl.keyStoreProvider</li> |
| <li>javax.net.ssl.keyStorePassword</li> |
| </ul> |
| <p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the system SSL socket factory |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../../org/apache/http/conn/ssl/SSLInitializationException.html" title="class in org.apache.http.conn.ssl">SSLInitializationException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createSocket(org.apache.http.params.HttpParams)"><!-- --></A><H3> |
| createSocket</H3> |
| <PRE> |
| public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> <B>createSocket</B>(<A HREF="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/params/HttpParams.html" title="class or interface in org.apache.http.params">HttpParams</A> params) |
| throws <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/http/conn/scheme/SchemeSocketFactory.html#createSocket(org.apache.http.params.HttpParams)">SchemeSocketFactory</A></CODE></B></DD> |
| <DD>Creates a new, unconnected socket. The socket should subsequently be passed to |
| <A HREF="../../../../../org/apache/http/conn/scheme/SchemeSocketFactory.html#connectSocket(java.net.Socket, java.net.InetSocketAddress, java.net.InetSocketAddress, org.apache.http.params.HttpParams)"><CODE>SchemeSocketFactory.connectSocket(Socket, InetSocketAddress, InetSocketAddress, HttpParams)</CODE></A>. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/http/conn/scheme/SchemeSocketFactory.html#createSocket(org.apache.http.params.HttpParams)">createSocket</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/http/conn/scheme/SchemeSocketFactory.html" title="interface in org.apache.http.conn.scheme">SchemeSocketFactory</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>params</CODE> - Optional parameters. Parameters passed to this method will have no effect. |
| This method will create a unconnected instance of <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net"><CODE>Socket</CODE></A> class. |
| <DT><B>Returns:</B><DD>a new socket |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an I/O error occurs while creating the socket<DT><B>Since:</B></DT> |
| <DD>4.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createSocket()"><!-- --></A><H3> |
| createSocket</H3> |
| <PRE> |
| <FONT SIZE="-1"><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Deprecated.html" title="class or interface in java.lang">@Deprecated</A> |
| </FONT>public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> <B>createSocket</B>() |
| throws <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> |
| <P> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/http/conn/scheme/SocketFactory.html#createSocket()">SocketFactory</A></CODE></B></DD> |
| <DD>Creates a new, unconnected socket. |
| The socket should subsequently be passed to |
| <A HREF="../../../../../org/apache/http/conn/scheme/SocketFactory.html#connectSocket(java.net.Socket, java.lang.String, int, java.net.InetAddress, int, org.apache.http.params.HttpParams)"><CODE>connectSocket</CODE></A>. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/http/conn/scheme/SocketFactory.html#createSocket()">createSocket</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/http/conn/scheme/SocketFactory.html" title="interface in org.apache.http.conn.scheme">SocketFactory</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>a new socket |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an I/O error occurs while creating the socket</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="connectSocket(java.net.Socket, java.net.InetSocketAddress, java.net.InetSocketAddress, org.apache.http.params.HttpParams)"><!-- --></A><H3> |
| connectSocket</H3> |
| <PRE> |
| public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> <B>connectSocket</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> socket, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/InetSocketAddress.html" title="class or interface in java.net">InetSocketAddress</A> remoteAddress, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/InetSocketAddress.html" title="class or interface in java.net">InetSocketAddress</A> localAddress, |
| <A HREF="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/params/HttpParams.html" title="class or interface in org.apache.http.params">HttpParams</A> params) |
| throws <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A>, |
| <A HREF="../../../../../org/apache/http/conn/ConnectTimeoutException.html" title="class in org.apache.http.conn">ConnectTimeoutException</A></PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/http/conn/scheme/SchemeSocketFactory.html#connectSocket(java.net.Socket, java.net.InetSocketAddress, java.net.InetSocketAddress, org.apache.http.params.HttpParams)">SchemeSocketFactory</A></CODE></B></DD> |
| <DD>Connects a socket to the target host with the given remote address. |
| <p/> |
| Please note that <A HREF="../../../../../org/apache/http/conn/HttpInetSocketAddress.html" title="class in org.apache.http.conn"><CODE>HttpInetSocketAddress</CODE></A> class should be used in order to pass |
| the target remote address along with the original <A HREF="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/HttpHost.html" title="class or interface in org.apache.http"><CODE>HttpHost</CODE></A> value used to resolve |
| the address. The use of <A HREF="../../../../../org/apache/http/conn/HttpInetSocketAddress.html" title="class in org.apache.http.conn"><CODE>HttpInetSocketAddress</CODE></A> can also ensure that no reverse |
| DNS lookup will be performed if the target remote address was specified as an IP address. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/http/conn/scheme/SchemeSocketFactory.html#connectSocket(java.net.Socket, java.net.InetSocketAddress, java.net.InetSocketAddress, org.apache.http.params.HttpParams)">connectSocket</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/http/conn/scheme/SchemeSocketFactory.html" title="interface in org.apache.http.conn.scheme">SchemeSocketFactory</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>socket</CODE> - the socket to connect, as obtained from |
| <A HREF="../../../../../org/apache/http/conn/scheme/SchemeSocketFactory.html#createSocket(org.apache.http.params.HttpParams)"><CODE>createSocket</CODE></A>. |
| <code>null</code> indicates that a new socket |
| should be created and connected.<DD><CODE>remoteAddress</CODE> - the remote address to connect to.<DD><CODE>localAddress</CODE> - the local address to bind the socket to, or |
| <code>null</code> for any<DD><CODE>params</CODE> - additional <A HREF="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/params/HttpParams.html" title="class or interface in org.apache.http.params"><CODE>parameters</CODE></A> for connecting |
| <DT><B>Returns:</B><DD>the connected socket. The returned object may be different |
| from the <code>sock</code> argument if this factory supports |
| a layered protocol. |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an I/O error occurs |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A></CODE> - if the IP address of the target host |
| can not be determined |
| <DD><CODE><A HREF="../../../../../org/apache/http/conn/ConnectTimeoutException.html" title="class in org.apache.http.conn">ConnectTimeoutException</A></CODE> - if the socket cannot be connected |
| within the time limit defined in the <code>params</code><DT><B>Since:</B></DT> |
| <DD>4.1</DD> |
| <DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/http/conn/HttpInetSocketAddress.html" title="class in org.apache.http.conn"><CODE>HttpInetSocketAddress</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isSecure(java.net.Socket)"><!-- --></A><H3> |
| isSecure</H3> |
| <PRE> |
| public boolean <B>isSecure</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> sock) |
| throws <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE> |
| <DL> |
| <DD>Checks whether a socket connection is secure. |
| This factory creates TLS/SSL socket connections |
| which, by default, are considered secure. |
| <br/> |
| Derived classes may override this method to perform |
| runtime checks, for example based on the cypher suite. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/http/conn/scheme/SchemeSocketFactory.html#isSecure(java.net.Socket)">isSecure</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/http/conn/scheme/SchemeSocketFactory.html" title="interface in org.apache.http.conn.scheme">SchemeSocketFactory</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/http/conn/scheme/SocketFactory.html#isSecure(java.net.Socket)">isSecure</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/http/conn/scheme/SocketFactory.html" title="interface in org.apache.http.conn.scheme">SocketFactory</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>sock</CODE> - the connected socket |
| <DT><B>Returns:</B><DD><code>true</code> |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the argument is invalid</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createLayeredSocket(java.net.Socket, java.lang.String, int, org.apache.http.params.HttpParams)"><!-- --></A><H3> |
| createLayeredSocket</H3> |
| <PRE> |
| public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> <B>createLayeredSocket</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> socket, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> host, |
| int port, |
| <A HREF="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/params/HttpParams.html" title="class or interface in org.apache.http.params">HttpParams</A> params) |
| throws <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A></PRE> |
| <DL> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/http/conn/scheme/SchemeLayeredSocketFactory.html#createLayeredSocket(java.net.Socket, java.lang.String, int, org.apache.http.params.HttpParams)">SchemeLayeredSocketFactory</A></CODE></B></DD> |
| <DD>Returns a socket connected to the given host that is layered over an |
| existing socket. Used primarily for creating secure sockets through |
| proxies. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/http/conn/scheme/SchemeLayeredSocketFactory.html#createLayeredSocket(java.net.Socket, java.lang.String, int, org.apache.http.params.HttpParams)">createLayeredSocket</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/http/conn/scheme/SchemeLayeredSocketFactory.html" title="interface in org.apache.http.conn.scheme">SchemeLayeredSocketFactory</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>socket</CODE> - the existing socket<DD><CODE>host</CODE> - the name of the target host.<DD><CODE>port</CODE> - the port to connect to on the target host<DD><CODE>params</CODE> - HTTP parameters |
| <DT><B>Returns:</B><DD>Socket a new socket |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an I/O error occurs while creating the socket |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A></CODE> - if the IP address of the host cannot be |
| determined<DT><B>Since:</B></DT> |
| <DD>4.2</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createLayeredSocket(java.net.Socket, java.lang.String, int, boolean)"><!-- --></A><H3> |
| createLayeredSocket</H3> |
| <PRE> |
| public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> <B>createLayeredSocket</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> socket, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> host, |
| int port, |
| boolean autoClose) |
| throws <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>use <A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#createLayeredSocket(java.net.Socket, java.lang.String, int, org.apache.http.params.HttpParams)"><CODE>createLayeredSocket(Socket, String, int, HttpParams)</CODE></A></I> |
| <P> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/http/conn/scheme/LayeredSchemeSocketFactory.html#createLayeredSocket(java.net.Socket, java.lang.String, int, boolean)">LayeredSchemeSocketFactory</A></CODE></B></DD> |
| <DD>Returns a socket connected to the given host that is layered over an |
| existing socket. Used primarily for creating secure sockets through |
| proxies. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/http/conn/scheme/LayeredSchemeSocketFactory.html#createLayeredSocket(java.net.Socket, java.lang.String, int, boolean)">createLayeredSocket</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/http/conn/scheme/LayeredSchemeSocketFactory.html" title="interface in org.apache.http.conn.scheme">LayeredSchemeSocketFactory</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>socket</CODE> - the existing socket<DD><CODE>host</CODE> - the name of the target host.<DD><CODE>port</CODE> - the port to connect to on the target host<DD><CODE>autoClose</CODE> - a flag for closing the underling socket when the created |
| socket is closed |
| <DT><B>Returns:</B><DD>Socket a new socket |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an I/O error occurs while creating the socket |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A></CODE> - if the IP address of the host cannot be |
| determined</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setHostnameVerifier(org.apache.http.conn.ssl.X509HostnameVerifier)"><!-- --></A><H3> |
| setHostnameVerifier</H3> |
| <PRE> |
| <FONT SIZE="-1"><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Deprecated.html" title="class or interface in java.lang">@Deprecated</A> |
| </FONT>public void <B>setHostnameVerifier</B>(<A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A> hostnameVerifier)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getHostnameVerifier()"><!-- --></A><H3> |
| getHostnameVerifier</H3> |
| <PRE> |
| public <A HREF="../../../../../org/apache/http/conn/ssl/X509HostnameVerifier.html" title="interface in org.apache.http.conn.ssl">X509HostnameVerifier</A> <B>getHostnameVerifier</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="connectSocket(java.net.Socket, java.lang.String, int, java.net.InetAddress, int, org.apache.http.params.HttpParams)"><!-- --></A><H3> |
| connectSocket</H3> |
| <PRE> |
| <FONT SIZE="-1"><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Deprecated.html" title="class or interface in java.lang">@Deprecated</A> |
| </FONT>public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> <B>connectSocket</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> socket, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> host, |
| int port, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/InetAddress.html" title="class or interface in java.net">InetAddress</A> localAddress, |
| int localPort, |
| <A HREF="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/params/HttpParams.html" title="class or interface in org.apache.http.params">HttpParams</A> params) |
| throws <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A>, |
| <A HREF="../../../../../org/apache/http/conn/ConnectTimeoutException.html" title="class in org.apache.http.conn">ConnectTimeoutException</A></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>Use <A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#connectSocket(java.net.Socket, java.net.InetSocketAddress, java.net.InetSocketAddress, org.apache.http.params.HttpParams)"><CODE>connectSocket(Socket, InetSocketAddress, InetSocketAddress, HttpParams)</CODE></A></I> |
| <P> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/http/conn/scheme/SocketFactory.html#connectSocket(java.net.Socket, java.lang.String, int, java.net.InetAddress, int, org.apache.http.params.HttpParams)">SocketFactory</A></CODE></B></DD> |
| <DD>Connects a socket to the given host. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/http/conn/scheme/SocketFactory.html#connectSocket(java.net.Socket, java.lang.String, int, java.net.InetAddress, int, org.apache.http.params.HttpParams)">connectSocket</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/http/conn/scheme/SocketFactory.html" title="interface in org.apache.http.conn.scheme">SocketFactory</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>socket</CODE> - the socket to connect, as obtained from |
| <A HREF="../../../../../org/apache/http/conn/scheme/SocketFactory.html#createSocket()"><CODE>createSocket</CODE></A>. |
| <code>null</code> indicates that a new socket |
| should be created and connected.<DD><CODE>host</CODE> - the host to connect to<DD><CODE>port</CODE> - the port to connect to on the host<DD><CODE>localAddress</CODE> - the local address to bind the socket to, or |
| <code>null</code> for any<DD><CODE>localPort</CODE> - the port on the local machine, |
| 0 or a negative number for any<DD><CODE>params</CODE> - additional <A HREF="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/params/HttpParams.html" title="class or interface in org.apache.http.params"><CODE>parameters</CODE></A> for connecting |
| <DT><B>Returns:</B><DD>the connected socket. The returned object may be different |
| from the <code>sock</code> argument if this factory supports |
| a layered protocol. |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an I/O error occurs |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A></CODE> - if the IP address of the target host |
| can not be determined |
| <DD><CODE><A HREF="../../../../../org/apache/http/conn/ConnectTimeoutException.html" title="class in org.apache.http.conn">ConnectTimeoutException</A></CODE> - if the socket cannot be connected |
| within the time limit defined in the <code>params</code></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createSocket(java.net.Socket, java.lang.String, int, boolean)"><!-- --></A><H3> |
| createSocket</H3> |
| <PRE> |
| <FONT SIZE="-1"><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Deprecated.html" title="class or interface in java.lang">@Deprecated</A> |
| </FONT>public <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> <B>createSocket</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> socket, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> host, |
| int port, |
| boolean autoClose) |
| throws <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A>, |
| <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>Use <A HREF="../../../../../org/apache/http/conn/ssl/SSLSocketFactory.html#createLayeredSocket(java.net.Socket, java.lang.String, int, boolean)"><CODE>createLayeredSocket(Socket, String, int, boolean)</CODE></A></I> |
| <P> |
| <DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/apache/http/conn/scheme/LayeredSocketFactory.html#createSocket(java.net.Socket, java.lang.String, int, boolean)">LayeredSocketFactory</A></CODE></B></DD> |
| <DD>Returns a socket connected to the given host that is layered over an |
| existing socket. Used primarily for creating secure sockets through |
| proxies. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/http/conn/scheme/LayeredSocketFactory.html#createSocket(java.net.Socket, java.lang.String, int, boolean)">createSocket</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/http/conn/scheme/LayeredSocketFactory.html" title="interface in org.apache.http.conn.scheme">LayeredSocketFactory</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>socket</CODE> - the existing socket<DD><CODE>host</CODE> - the host name/IP<DD><CODE>port</CODE> - the port on the host<DD><CODE>autoClose</CODE> - a flag for closing the underling socket when the created |
| socket is closed |
| <DT><B>Returns:</B><DD>Socket a new socket |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an I/O error occurs while creating the socket |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A></CODE> - if the IP address of the host cannot be |
| determined</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="prepareSocket(javax.net.ssl.SSLSocket)"><!-- --></A><H3> |
| prepareSocket</H3> |
| <PRE> |
| protected void <B>prepareSocket</B>(<A HREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/net/ssl/SSLSocket.html" title="class or interface in javax.net.ssl">SSLSocket</A> socket) |
| throws <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE> |
| <DL> |
| <DD>Performs any custom initialization for a newly created SSLSocket |
| (before the SSL handshake happens). |
| |
| The default implementation is a no-op, but could be overriden to, e.g., |
| call <A HREF="http://download.oracle.com/javase/1.5.0/docs/api/javax/net/ssl/SSLSocket.html#setEnabledCipherSuites(java.lang.String[])" title="class or interface in javax.net.ssl"><CODE>SSLSocket.setEnabledCipherSuites(java.lang.String[])</CODE></A>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE><DT><B>Since:</B></DT> |
| <DD>4.2</DD> |
| </DL> |
| </DD> |
| </DL> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <HR> |
| |
| |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <A NAME="navbar_bottom"><!-- --></A> |
| <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SSLSocketFactory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../org/apache/http/conn/ssl/SSLInitializationException.html" title="class in org.apache.http.conn.ssl"><B>PREV CLASS</B></A> |
| <A HREF="../../../../../org/apache/http/conn/ssl/StrictHostnameVerifier.html" title="class in org.apache.http.conn.ssl"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../index.html?org/apache/http/conn/ssl/SSLSocketFactory.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="SSLSocketFactory.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| Copyright © 1999-2012 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved. |
| </BODY> |
| </HTML> |