public class DomainSocketFactory extends Object implements org.jacorb.orb.factory.SocketFactory, org.jacorb.config.Configurable
This class implements a JacORB SocketFactory
that uses a JSSESecurityDomain
to build SSL sockets.
It is installed if SSL support is enabled in the subsystem configuration. For example:
The security domain name is required and must match a configured domain that contains JSSE configuration:
Constructor and Description |
---|
DomainSocketFactory(org.jacorb.orb.ORB orb)
Creates an instance of
DomainSocketFactory with the specified ORB. |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.jacorb.config.Configuration configuration) |
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
int timeout) |
boolean |
isSSL(Socket socket) |
public DomainSocketFactory(org.jacorb.orb.ORB orb)
Creates an instance of DomainSocketFactory
with the specified ORB.
orb
- a reference to the running org.jacorb.orb.ORB
instance.public Socket createSocket(String host, int port) throws IOException
createSocket
in interface org.jacorb.orb.factory.SocketFactory
IOException
public Socket createSocket(String host, int port, int timeout) throws IOException, TIMEOUT
createSocket
in interface org.jacorb.orb.factory.SocketFactory
IOException
TIMEOUT
public boolean isSSL(Socket socket)
isSSL
in interface org.jacorb.orb.factory.SocketFactory
public void configure(org.jacorb.config.Configuration configuration) throws org.jacorb.config.ConfigurationException
configure
in interface org.jacorb.config.Configurable
org.jacorb.config.ConfigurationException
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.