Class IIOPSSLSocketFactory

  • All Implemented Interfaces:
    com.sun.corba.ee.spi.transport.ORBSocketFactory

    public class IIOPSSLSocketFactory
    extends Object
    implements com.sun.corba.ee.spi.transport.ORBSocketFactory
    This is socket factory used to create either plain sockets or SSL sockets based on the target's policies and the client policies.
    Author:
    Vivek Nagar, Shing Wai Chan
    • Constructor Detail

      • IIOPSSLSocketFactory

        public IIOPSSLSocketFactory()
        Constructs an IIOPSSLSocketFactory
    • Method Detail

      • setORB

        public void setORB​(com.sun.corba.ee.spi.orb.ORB orb)
        Specified by:
        setORB in interface com.sun.corba.ee.spi.transport.ORBSocketFactory
      • createServerSocket

        public ServerSocket createServerSocket​(String type,
                                               InetSocketAddress inetSocketAddress)
                                        throws IOException
        Create a server socket on the specified InetSocketAddress based on the type of the server socket (SSL, SSL_MUTUALAUTH, PERSISTENT_SSL or CLEAR_TEXT).
        Specified by:
        createServerSocket in interface com.sun.corba.ee.spi.transport.ORBSocketFactory
        Parameters:
        type - type of socket to create.
        inetSocketAddress - the InetSocketAddress
        Returns:
        the server socket on the specified InetSocketAddress
        Throws:
        IOException - if an I/O error occurs during server socket creation
      • createSocket

        public Socket createSocket​(String type,
                                   InetSocketAddress inetSocketAddress)
                            throws IOException
        Create a client socket for the specified InetSocketAddress. Creates an SSL socket if the type specified is SSL or SSL_MUTUALAUTH.
        Specified by:
        createSocket in interface com.sun.corba.ee.spi.transport.ORBSocketFactory
        Parameters:
        type -
        inetSocketAddress -
        Returns:
        the socket.
        Throws:
        IOException
      • setAcceptedSocketOptions

        public void setAcceptedSocketOptions​(com.sun.corba.ee.spi.transport.Acceptor acceptor,
                                             ServerSocket serverSocket,
                                             Socket socket)
        Specified by:
        setAcceptedSocketOptions in interface com.sun.corba.ee.spi.transport.ORBSocketFactory