org.jpos.iso
Class SunJSSESocketFactory
java.lang.Object
org.jpos.util.SimpleLogSource
org.jpos.iso.SunJSSESocketFactory
- All Implemented Interfaces:
- Configurable, ReConfigurable, ISOClientSocketFactory, ISOServerSocketFactory, LogSource
public class SunJSSESocketFactory
- extends SimpleLogSource
- implements ISOServerSocketFactory, ISOClientSocketFactory, ReConfigurable
SunJSSESocketFactory is used by BaseChannel and ISOServer
in order to provide hooks for SSL implementations.
- Since:
- 1.3.3
- Version:
- $Revision: 2594 $ $Date: 2008-01-22 08:41:31 -0800 (Tue, 22 Jan 2008) $
- Author:
- Bharavi Gade, Alwyn Schoeman
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SunJSSESocketFactory
public SunJSSESocketFactory()
setKeyStore
public void setKeyStore(java.lang.String keyStore)
setPassword
public void setPassword(java.lang.String password)
setKeyPassword
public void setKeyPassword(java.lang.String keyPassword)
setServerName
public void setServerName(java.lang.String serverName)
setClientAuthNeeded
public void setClientAuthNeeded(boolean clientAuthNeeded)
setServerAuthNeeded
public void setServerAuthNeeded(boolean serverAuthNeeded)
createServerSocket
public java.net.ServerSocket createServerSocket(int port)
throws java.io.IOException,
ISOException
- Create a server socket on the specified port (port 0 indicates
an anonymous port).
- Specified by:
createServerSocket in interface ISOServerSocketFactory
- Parameters:
port - the port number
- Returns:
- the server socket on the specified port
- Throws:
java.io.IOException - should an I/O error occurs during
ISOException - should an error occurs during
creation
createSocket
public java.net.Socket createSocket(java.lang.String host,
int port)
throws java.io.IOException,
ISOException
- Create a client socket connected to the specified host and port.
- Specified by:
createSocket in interface ISOClientSocketFactory
- Parameters:
host - the host nameport - the port number
- Returns:
- a socket connected to the specified host and port.
- Throws:
java.io.IOException - if an I/O error occurs during socket creation
ISOException - should any other error occurs
getKeyStore
public java.lang.String getKeyStore()
getServerName
public java.lang.String getServerName()
getClientAuthNeeded
public boolean getClientAuthNeeded()
getServerAuthNeeded
public boolean getServerAuthNeeded()
setEnabledCipherSuites
public void setEnabledCipherSuites(java.lang.String[] enabledCipherSuites)
getEnabledCipherSuites
public java.lang.String[] getEnabledCipherSuites()
setConfiguration
public void setConfiguration(Configuration cfg)
throws ConfigurationException
- Specified by:
setConfiguration in interface Configurable
- Parameters:
cfg - Configuration object
- Throws:
ConfigurationException- See Also:
Configurable.setConfiguration(org.jpos.core.Configuration)
getConfiguration
public Configuration getConfiguration()