pygmy.core
Class SSLServerSocketEndPoint

java.lang.Object
  extended by pygmy.core.ServerSocketEndPoint
      extended by pygmy.core.SSLServerSocketEndPoint
All Implemented Interfaces:
java.lang.Runnable, EndPoint

public class SSLServerSocketEndPoint
extends ServerSocketEndPoint

This EndPoint provides SSL sockets for http protocol. This extends the ServerSocket to create SSLSockets for http.

Parameter NameExplanationDefault ValueRequired
keystoreThe keystore of the certificates used by this socket. This contains both the certificate used to authenticate the server as well as authenticate clients.NoneYes
storepassPassword for the keystore.NoneYes
keypassPassword for the key with the given alias.Defaults to storepassNo, but its a good idea
aliasThe name of the certificate in the keystore used for server authentication.sslkeyNo
ciphersA comma seperated list of cipher suites to use to encrypt the SSL socket.No
protocolsA comma seperated list of protocols to use in negotiating the SSL socket.No
clientauthSetting this to true will require clients authenticate to the server.falseNo


Field Summary
 
Fields inherited from class pygmy.core.ServerSocketEndPoint
endpointName, factory, resolveHostName, server, socket
 
Constructor Summary
SSLServerSocketEndPoint()
           
 
Method Summary
protected  java.net.ServerSocket createSocket(int port)
           
protected  java.lang.String getProtocol()
           
 void initialize(java.lang.String name, Server server)
           
 
Methods inherited from class pygmy.core.ServerSocketEndPoint
createRunnable, getName, run, shutdown, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLServerSocketEndPoint

public SSLServerSocketEndPoint()
Method Detail

initialize

public void initialize(java.lang.String name,
                       Server server)
                throws java.io.IOException
Specified by:
initialize in interface EndPoint
Overrides:
initialize in class ServerSocketEndPoint
Throws:
java.io.IOException

getProtocol

protected java.lang.String getProtocol()
Overrides:
getProtocol in class ServerSocketEndPoint

createSocket

protected java.net.ServerSocket createSocket(int port)
                                      throws java.io.IOException
Overrides:
createSocket in class ServerSocketEndPoint
Throws:
java.io.IOException