xsul.puretls_server_socket_factory
Class PuretlsServerSocketFactory

java.lang.Object
  extended byxsul.puretls_server_socket_factory.PuretlsServerSocketFactory
All Implemented Interfaces:
ServerSocketFactory

public class PuretlsServerSocketFactory
extends java.lang.Object
implements ServerSocketFactory


Constructor Summary
PuretlsServerSocketFactory(int serverPort, SSLContext ctx)
           
PuretlsServerSocketFactory(int serverPort, java.lang.String rootfile, java.lang.String keyfile, java.lang.String password)
           
PuretlsServerSocketFactory(int serverPort, java.lang.String rootfile, java.lang.String keyfile, java.lang.String password, boolean clientauth, boolean fakeseed, short[] cipherSuites, java.lang.String dhfile)
           
 
Method Summary
 java.net.Socket accept()
          Accept new socket that can be used to read SOAP/HTTP request.
 java.net.Socket accept(java.util.Map connectionProps)
           
 void bindSocket(int serverPort, SSLContext ctx)
           
static java.net.InetAddress getMyIp()
           
 java.lang.String getServerLocation()
           
 int getServerPort()
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PuretlsServerSocketFactory

public PuretlsServerSocketFactory(int serverPort,
                                  java.lang.String rootfile,
                                  java.lang.String keyfile,
                                  java.lang.String password)

PuretlsServerSocketFactory

public PuretlsServerSocketFactory(int serverPort,
                                  java.lang.String rootfile,
                                  java.lang.String keyfile,
                                  java.lang.String password,
                                  boolean clientauth,
                                  boolean fakeseed,
                                  short[] cipherSuites,
                                  java.lang.String dhfile)
                           throws HttpServerException

PuretlsServerSocketFactory

public PuretlsServerSocketFactory(int serverPort,
                                  SSLContext ctx)
                           throws HttpServerException
Method Detail

bindSocket

public void bindSocket(int serverPort,
                       SSLContext ctx)
                throws HttpServerException
Throws:
HttpServerException

getServerPort

public int getServerPort()
Specified by:
getServerPort in interface ServerSocketFactory

accept

public java.net.Socket accept()
                       throws java.io.IOException
Description copied from interface: ServerSocketFactory
Accept new socket that can be used to read SOAP/HTTP request.

Specified by:
accept in interface ServerSocketFactory
Throws:
java.io.IOException

accept

public java.net.Socket accept(java.util.Map connectionProps)
                       throws java.io.IOException
Specified by:
accept in interface ServerSocketFactory
Throws:
java.io.IOException

shutdown

public void shutdown()
              throws java.io.IOException
Specified by:
shutdown in interface ServerSocketFactory
Throws:
java.io.IOException

getMyIp

public static java.net.InetAddress getMyIp()
                                    throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException

getServerLocation

public java.lang.String getServerLocation()
                                   throws HttpServerException
Specified by:
getServerLocation in interface ServerSocketFactory
Throws:
HttpServerException


IU Extreme! Lab (http://www.extreme.indiana.edu)