android inventory agent 1.0.0

Code documentation

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

Class EasySSLSocketFactory

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


    public class EasySSLSocketFactory
    extends java.lang.Object
    implements org.apache.http.conn.scheme.SocketFactory, org.apache.http.conn.scheme.LayeredSocketFactory
    This socket factory will create ssl socket that accepts self signed certificate
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.net.Socket connectSocket(java.net.Socket sock, java.lang.String host, int port, java.net.InetAddress localAddress, int localPort, org.apache.http.params.HttpParams params) 
      java.net.Socket createSocket() 
      java.net.Socket createSocket(java.net.Socket socket, java.lang.String host, int port, boolean autoClose) 
      boolean equals(java.lang.Object obj)
      Indicates whether some other object is "equal to" this one
      int hashCode()
      Returns a hash code value
      boolean isSecure(java.net.Socket socket) 
      • Methods inherited from class java.lang.Object

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

      • EasySSLSocketFactory

        public EasySSLSocketFactory()
    • Method Detail

      • connectSocket

        public java.net.Socket connectSocket(java.net.Socket sock,
                                             java.lang.String host,
                                             int port,
                                             java.net.InetAddress localAddress,
                                             int localPort,
                                             org.apache.http.params.HttpParams params)
                                      throws java.io.IOException,
                                             java.net.UnknownHostException,
                                             org.apache.http.conn.ConnectTimeoutException
        Specified by:
        connectSocket in interface org.apache.http.conn.scheme.SocketFactory
        Throws:
        java.io.IOException
        java.net.UnknownHostException
        org.apache.http.conn.ConnectTimeoutException
        See Also:
        SocketFactory.connectSocket(java.net.Socket, java.lang.String, int, java.net.InetAddress, int, org.apache.http.params.HttpParams)
      • createSocket

        public java.net.Socket createSocket()
                                     throws java.io.IOException
        Specified by:
        createSocket in interface org.apache.http.conn.scheme.SocketFactory
        Throws:
        java.io.IOException
        See Also:
        SocketFactory.createSocket()
      • isSecure

        public boolean isSecure(java.net.Socket socket)
                         throws java.lang.IllegalArgumentException
        Specified by:
        isSecure in interface org.apache.http.conn.scheme.SocketFactory
        Throws:
        java.lang.IllegalArgumentException
        See Also:
        SocketFactory.isSecure(java.net.Socket)
      • 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
        Throws:
        java.io.IOException
        java.net.UnknownHostException
        See Also:
        LayeredSocketFactory.createSocket(java.net.Socket, java.lang.String, int, boolean)
      • equals

        public boolean equals(java.lang.Object obj)
        Indicates whether some other object is "equal to" this one
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the reference object with which to compare
        Returns:
        boolean true if the object is the same as the one given in argument
      • hashCode

        public int hashCode()
        Returns a hash code value
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        int a hash code
Back to top