jPOS 1.6.1 API Documentation

org.jpos.iso
Class SunJSSESocketFactory

java.lang.Object
  extended by org.jpos.util.SimpleLogSource
      extended by 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

Constructor Summary
SunJSSESocketFactory()
           
 
Method Summary
 java.net.ServerSocket createServerSocket(int port)
          Create a server socket on the specified port (port 0 indicates an anonymous port).
 java.net.Socket createSocket(java.lang.String host, int port)
          Create a client socket connected to the specified host and port.
 boolean getClientAuthNeeded()
           
 Configuration getConfiguration()
           
 java.lang.String[] getEnabledCipherSuites()
           
 java.lang.String getKeyStore()
           
 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)
           
 
Methods inherited from class org.jpos.util.SimpleLogSource
error, error, getLogger, getRealm, info, info, setLogger, setRealm, warning, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SunJSSESocketFactory

public SunJSSESocketFactory()
Method Detail

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 name
port - 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()

jPOS.org