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.SocketFactoryIOExceptionpublic Socket createSocket(String host, int port, int timeout) throws IOException, TIMEOUT
createSocket in interface org.jacorb.orb.factory.SocketFactoryIOExceptionTIMEOUTpublic boolean isSSL(Socket socket)
isSSL in interface org.jacorb.orb.factory.SocketFactorypublic void configure(org.jacorb.config.Configuration configuration)
throws org.jacorb.config.ConfigurationException
configure in interface org.jacorb.config.Configurableorg.jacorb.config.ConfigurationExceptionCopyright © 2014 JBoss by Red Hat. All rights reserved.