de.geomobile.joined.api.service
Class MySSLSocketFactory

java.lang.Object
  extended by org.apache.http.conn.ssl.SSLSocketFactory
      extended by de.geomobile.joined.api.service.MySSLSocketFactory
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 MySSLSocketFactory
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
MySSLSocketFactory(KeyStore truststore)
           
 
Method Summary
 Socket createSocket()
           
 Socket createSocket(Socket socket, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySSLSocketFactory

public MySSLSocketFactory(KeyStore truststore)
                   throws NoSuchAlgorithmException,
                          KeyManagementException,
                          KeyStoreException,
                          UnrecoverableKeyException
Throws:
NoSuchAlgorithmException
KeyManagementException
KeyStoreException
UnrecoverableKeyException
Method Detail

createSocket

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

createSocket

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


Copyright © 2012 GeoMobile GmbH. All Rights Reserved.