pygmy.core
Class SSLServerSocketEndPoint
java.lang.Object
pygmy.core.ServerSocketEndPoint
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.
keystore | The keystore of the certificates used by this socket. This contains both the certificate used to authenticate the server as well as authenticate clients. | None | Yes |
storepass | Password for the keystore. | None | Yes |
keypass | Password for the key with the given alias. | Defaults to storepass | No, but its a good idea |
alias | The name of the certificate in the keystore used for server authentication. | sslkey | No |
ciphers | A comma seperated list of cipher suites to use to encrypt the SSL socket. | | No |
protocols | A comma seperated list of protocols to use in negotiating the SSL socket. | | No |
clientauth | Setting this to true will require clients authenticate to the server. | false | No |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSLServerSocketEndPoint
public SSLServerSocketEndPoint()
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