public class GenericSSLSocketFactory extends SimpleLogSource implements ISOServerSocketFactory, ISOClientSocketFactory, Configurable
SunJSSESocketFactory
is used by BaseChannel and ISOServer
in order to provide hooks for SSL implementations.logger, realm
Constructor and Description |
---|
GenericSSLSocketFactory() |
Modifier and Type | Method and Description |
---|---|
java.net.ServerSocket |
createServerSocket(int port)
Create a server socket on the specified port (port 0 indicates
an anonymous port).
|
protected javax.net.ssl.SSLServerSocketFactory |
createServerSocketFactory()
Create a socket factory
|
java.net.Socket |
createSocket(java.lang.String host,
int port)
Create a client socket connected to the specified host and port.
|
protected javax.net.ssl.SSLSocketFactory |
createSocketFactory()
Create a socket factory
|
boolean |
getClientAuthNeeded() |
Configuration |
getConfiguration() |
java.lang.String[] |
getEnabledCipherSuites() |
protected java.lang.String |
getKeyPassword() |
java.lang.String |
getKeyStore() |
protected java.lang.String |
getPassword() |
boolean |
getServerAuthNeeded() |
java.lang.String |
getServerName() |
void |
setClientAuthNeeded(boolean clientAuthNeeded) |
void |
setConfiguration(Configuration cfg) |
void |
setEnabledCipherSuites(java.lang.String[] enabledCipherSuites) |
void |
setKeyPassword(java.lang.String keyPassword) |
void |
setKeyStore(java.lang.String keyStore) |
void |
setPassword(java.lang.String password) |
void |
setServerAuthNeeded(boolean serverAuthNeeded) |
void |
setServerName(java.lang.String serverName) |
public void setKeyStore(java.lang.String keyStore)
public void setPassword(java.lang.String password)
public void setKeyPassword(java.lang.String keyPassword)
public void setServerName(java.lang.String serverName)
public void setClientAuthNeeded(boolean clientAuthNeeded)
public void setServerAuthNeeded(boolean serverAuthNeeded)
protected javax.net.ssl.SSLServerSocketFactory createServerSocketFactory() throws ISOException
ISOException
- if an error occurs during server socket
creationprotected javax.net.ssl.SSLSocketFactory createSocketFactory() throws ISOException
ISOException
- if an error occurs during server socket
creationpublic java.net.ServerSocket createServerSocket(int port) throws java.io.IOException, ISOException
createServerSocket
in interface ISOServerSocketFactory
port
- the port numberjava.io.IOException
- should an I/O error occurs duringISOException
- should an error occurs during
creationpublic java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException, ISOException
createSocket
in interface ISOClientSocketFactory
host
- the host nameport
- the port numberjava.io.IOException
- if an I/O error occurs during socket creationISOException
- should any other error occurspublic java.lang.String getKeyStore()
protected java.lang.String getPassword()
protected java.lang.String getKeyPassword()
public java.lang.String getServerName()
public boolean getClientAuthNeeded()
public boolean getServerAuthNeeded()
public void setEnabledCipherSuites(java.lang.String[] enabledCipherSuites)
public java.lang.String[] getEnabledCipherSuites()
public void setConfiguration(Configuration cfg) throws ConfigurationException
setConfiguration
in interface Configurable
cfg
- Configuration objectConfigurationException
public Configuration getConfiguration()