|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.dwarf.GenericService SK.gnome.dwarf.thread.ThreadService SK.gnome.dwarf.tcpip.Listener SK.gnome.dwarf.tcpip.TCPListener SK.gnome.dwarf.tcpip.SSLListener
Service for receiving SSL/TLS client connections.
The SSL server socket is obtained from the parent TCPIPServer
instance.
See the getServerSocket()
for more information.
Field Summary | |
protected java.lang.String[] |
enabledCipherSuites
Enabled sipher suites. |
protected boolean |
enableSessionCreation
Whether to enable the session creation. |
protected boolean |
needClientAuth
Whether the client authentication is needed. |
protected boolean |
useClientMode
Whether the client mode is enabled. |
Fields inherited from class SK.gnome.dwarf.tcpip.TCPListener |
backlog, socket |
Fields inherited from class SK.gnome.dwarf.tcpip.Listener |
address, allowedHosts, deniedHosts, port |
Fields inherited from class SK.gnome.dwarf.thread.ThreadService |
daemon, thread |
Fields inherited from class SK.gnome.dwarf.GenericService |
initParameters, parent |
Fields inherited from interface SK.gnome.dwarf.Service |
INITIALIZED, LOG_DEBUG, LOG_ERROR, LOG_FATAL, LOG_INFO, LOG_TRACE, LOG_WARN, LOG_XFER, SHUTDOWN, STARTED, STOPPED |
Constructor Summary | |
SSLListener(java.lang.String name)
Creates a new SSLListener. |
Method Summary | |
protected java.net.ServerSocket |
getServerSocket()
Returns the SSL server socket. |
void |
init(Server parent)
Initializes the service. |
void |
setEnabledCipherSuites(java.lang.String[] suites)
Sets the enabled cipher suites. |
void |
setEnableSessionCreation(boolean enable)
Enables or disables the SSL session creation. |
void |
setNeedClientAuth(boolean enable)
Enables or disables the client authentication. |
void |
setUseClientMode(boolean enable)
Enables or disables the client mode. |
Methods inherited from class SK.gnome.dwarf.tcpip.TCPListener |
enableThread, finish, loop, setBacklog, setDumpDir |
Methods inherited from class SK.gnome.dwarf.tcpip.Listener |
acceptHost, setAddress, setAllowedHosts, setDeniedHosts, setPort |
Methods inherited from class SK.gnome.dwarf.thread.ThreadService |
run, setDaemon, shutdown, start, stop |
Methods inherited from class SK.gnome.dwarf.GenericService |
getAuthenticator, getAuthFacility, getFullName, getInitParameter, getInitParameterNames, getLogFacility, getLogger, getName, getParameters, getPrincipal, getShutdownTimeout, getState, log, log, login, logout, setAuthFacility, setInitParameters, setLogFacility, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String[] enabledCipherSuites
Default value: null, i.e. all suites are enabled
setEnabledCipherSuites(String[])
protected boolean enableSessionCreation
Default value: true
setEnableSessionCreation(boolean)
protected boolean needClientAuth
Default value: false
setNeedClientAuth(boolean)
protected boolean useClientMode
Default value: false
setUseClientMode(boolean)
Constructor Detail |
public SSLListener(java.lang.String name)
Method Detail |
public void setEnabledCipherSuites(java.lang.String[] suites)
By default all available cipher suites are enabled.
suites
- the comma separated list of cipher suite namespublic void setEnableSessionCreation(boolean enable)
By default the session creation is enabled.
enable
- true to the session creationpublic void setNeedClientAuth(boolean enable)
By default the client authentication is not required.
enable
- true to require the client authenticationpublic void setUseClientMode(boolean enable)
By default the client mode is not enabled.
enable
- true to enable the client modepublic void init(Server parent) throws ServiceException
TCPListener
Sets the TCPListener.socket
field to value returned by the TCPListener.getServerSocket()
method.
This method requires that the parent server is an instance of TCPIPServer
class.
init
in interface Service
init
in class TCPListener
ServiceException
protected java.net.ServerSocket getServerSocket() throws ServiceException
This method calls the parent server's
TCPIPServer.createSSLServerSocket(int, int, java.net.InetAddress)
method
and simply returns its result.
getServerSocket
in class TCPListener
ServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |