android inventory agent 1.0.0

Code documentation

--- layout: codeDocumentation --- --- layout: codeDocumentation --- CustomSSLSocketFactory
org.glpi.inventory.agent.utils

Class CustomSSLSocketFactory

  • java.lang.Object
    • org.apache.http.conn.ssl.SSLSocketFactory
      • org.glpi.inventory.agent.utils.CustomSSLSocketFactory
  • All Implemented Interfaces:
    org.apache.http.conn.scheme.LayeredSocketFactory, org.apache.http.conn.scheme.SocketFactory


    public class CustomSSLSocketFactory
    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

      Constructors 
      Constructor and Description
      CustomSSLSocketFactory(java.security.KeyStore truststore) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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, getHostnameVerifier, getSocketFactory, isSecure, setHostnameVerifier
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomSSLSocketFactory

        public CustomSSLSocketFactory(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
Back to top