com.infoengine.au.ssl
Class SimpleServerSocketFactory
java.lang.Object
com.infoengine.au.ssl.SimpleServerSocketFactory
- All Implemented Interfaces:
- ServerSocketFactory
- public class SimpleServerSocketFactory
- extends Object
- implements ServerSocketFactory
This class implements a server socket factory that produces simple SSL
sockets using the default socket factory provided by the SSL reference
implementation.
The behavior of the factory is controlled by the following properties. In
each case, port corresponds to the port number on which the server
socket will listen for connection requests.
- com.infoengine.ssl.simpleServerSocket.port.protocol
The name of the secure socket protocol to be used, usually TLS or
SSL. If not defined, the default protocol of the reference
implementation is used (usually, no secure protocol).
- com.infoengine.ssl.simpleServerSocket.port.keyFile
The pathname of a file containing the keys used by the TLS or SSL
protocols. This property is required if a protocol is specified.
- com.infoengine.ssl.simpleServerSocket.port.algorithm
Specifies the name of the security algorithm used by the key manager.
If this property is not defined, the default is SunX509.
- com.infoengine.ssl.simpleServerSocket.port.keyStoreType
Specifies the type of the keystore. If this property is not defined, the
default is JKS.
- com.infoengine.ssl.simpleServerSocket.port.password
Specifies the password used in verifying and loading the keystore. If
this property is not defined, the keystore is not verified by password.
- com.infoengine.ssl.simpleServerSocket.port.requireClientAuthentication
If the value of this property is true or yes, clients are
required to authenticate themselves when requesting connections.
Otherwise, clients are not required to authenticate themselves.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleServerSocketFactory
public SimpleServerSocketFactory()
- Constructor.
createServerSocket
public ServerSocket createServerSocket(String service,
int port)
throws IOException
- Creates an SSL server socket that listens for connection requests.
- Specified by:
createServerSocket
in interface ServerSocketFactory
- Parameters:
service
- The name of the Info*Engine service with which the
server socket will be associated.port
- The port number on which the service instance listens for
connection requests.
- Returns:
- The server socket.
- Throws:
IOEException
- if the server socket can not be created.
IOException