elisa_client.service
Class EasySSLSocketFactory

java.lang.Object
  extended by org.apache.http.conn.ssl.SSLSocketFactory
      extended by elisa_client.service.EasySSLSocketFactory
All Implemented Interfaces:
org.apache.http.conn.scheme.LayeredSchemeSocketFactory, org.apache.http.conn.scheme.LayeredSocketFactory, org.apache.http.conn.scheme.SchemeSocketFactory, org.apache.http.conn.scheme.SocketFactory

public class EasySSLSocketFactory
extends org.apache.http.conn.ssl.SSLSocketFactory


Field Summary
 
Fields inherited from class org.apache.http.conn.ssl.SSLSocketFactory
ALLOW_ALL_HOSTNAME_VERIFIER, BROWSER_COMPATIBLE_HOSTNAME_VERIFIER, SSL, SSLV2, STRICT_HOSTNAME_VERIFIER, TLS
 
Constructor Summary
EasySSLSocketFactory(java.security.KeyStore truststore)
           
 
Method Summary
 java.net.Socket createSocket()
           
 java.net.Socket createSocket(java.net.Socket socket, java.lang.String host, int port, boolean autoClose)
           
 
Methods inherited from class org.apache.http.conn.ssl.SSLSocketFactory
connectSocket, connectSocket, createLayeredSocket, createSocket, getHostnameVerifier, getSocketFactory, isSecure, setHostnameVerifier
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EasySSLSocketFactory

public EasySSLSocketFactory(java.security.KeyStore truststore)
                     throws java.security.NoSuchAlgorithmException,
                            java.security.KeyManagementException,
                            java.security.KeyStoreException,
                            java.security.UnrecoverableKeyException
Throws:
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
Method Detail

createSocket

public java.net.Socket createSocket(java.net.Socket socket,
                                    java.lang.String host,
                                    int port,
                                    boolean autoClose)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Specified by:
createSocket in interface org.apache.http.conn.scheme.LayeredSocketFactory
Overrides:
createSocket in class org.apache.http.conn.ssl.SSLSocketFactory
Throws:
java.io.IOException
java.net.UnknownHostException

createSocket

public java.net.Socket createSocket()
                             throws java.io.IOException
Specified by:
createSocket in interface org.apache.http.conn.scheme.SocketFactory
Overrides:
createSocket in class org.apache.http.conn.ssl.SSLSocketFactory
Throws:
java.io.IOException