org.glassfish.enterprise.iiop.impl
Class IIOPSSLSocketFactory

java.lang.Object
  extended by org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory
All Implemented Interfaces:
com.sun.corba.ee.spi.transport.ORBSocketFactory

public class IIOPSSLSocketFactory
extends java.lang.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 Summary
IIOPSSLSocketFactory()
          Constructs an IIOPSSLSocketFactory
 
Method Summary
 java.net.ServerSocket createServerSocket(java.lang.String type, java.net.InetSocketAddress inetSocketAddress)
          Create a server socket on the specified InetSocketAddress based on the type of the server socket (SSL, SSL_MUTUALAUTH, PERSISTENT_SSL or CLEAR_TEXT).
 java.net.Socket createSocket(java.lang.String type, java.net.InetSocketAddress inetSocketAddress)
          Create a client socket for the specified InetSocketAddress.
 void setAcceptedSocketOptions(com.sun.corba.ee.spi.transport.CorbaAcceptor acceptor, java.net.ServerSocket serverSocket, java.net.Socket socket)
           
 void setORB(com.sun.corba.ee.spi.orb.ORB orb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 java.net.ServerSocket createServerSocket(java.lang.String type,
                                                java.net.InetSocketAddress inetSocketAddress)
                                         throws java.io.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:
java.io.IOException - if an I/O error occurs during server socket creation

createSocket

public java.net.Socket createSocket(java.lang.String type,
                                    java.net.InetSocketAddress inetSocketAddress)
                             throws java.io.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:
java.io.IOException

setAcceptedSocketOptions

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


Copyright © 2012 GlassFish Community. All Rights Reserved.