Class IIOPSSLSocketFactory
- java.lang.Object
-
- org.glassfish.enterprise.iiop.impl.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 Summary
Constructors Constructor Description IIOPSSLSocketFactory()
Constructs anIIOPSSLSocketFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerSocket
createServerSocket(String type, 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).Socket
createSocket(String type, InetSocketAddress inetSocketAddress)
Create a client socket for the specified InetSocketAddress.void
setAcceptedSocketOptions(com.sun.corba.ee.spi.transport.Acceptor acceptor, ServerSocket serverSocket, Socket socket)
void
setORB(com.sun.corba.ee.spi.orb.ORB orb)
-
-
-
Method Detail
-
setORB
public void setORB(com.sun.corba.ee.spi.orb.ORB orb)
- Specified by:
setORB
in interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.sun.corba.ee.spi.transport.ORBSocketFactory
-
-