public class DTLSServerHandler extends DatagramServerHandler
IEngineDatagramSession
.
Limitations:: As the session objects created by this handler do not implement their own I/O functionalities calling to methods suspending read/write operations will also suspend all other sessions currently handled by this handler.
sessions, timers
Constructor and Description |
---|
DTLSServerHandler(IDatagramHandlerFactory handlerFactory)
Constructs a DTLS server handler with the
DefaultSessionConfig and the
DefaultSessionStructureFactory . |
DTLSServerHandler(IDatagramHandlerFactory handlerFactory,
ISessionConfig config)
Constructs a DTLS server handler with the
DefaultSessionConfig . |
DTLSServerHandler(IDatagramHandlerFactory handlerFactory,
ISessionConfig config,
ISessionStructureFactory factory)
Constructs a DTLS server handler.
|
Modifier and Type | Method and Description |
---|---|
protected IEngine |
createEngine(SocketAddress remoteAddress,
ISessionConfig config)
Determines if a newly created session should be a DTLS session driven by the
SSLEngine created by the config.createSSLEngine() method. |
event, event, event, exception, getConfig, getFactory, getSessions, incident, read, read, read, read, read, read, timer
getSession, setSession
getName, timer
public DTLSServerHandler(IDatagramHandlerFactory handlerFactory)
DefaultSessionConfig
and the
DefaultSessionStructureFactory
.handlerFactory
- the factory used to create datagram handlers the will be
associated with newly created sessions for remote hostspublic DTLSServerHandler(IDatagramHandlerFactory handlerFactory, ISessionConfig config)
DefaultSessionConfig
.handlerFactory
- the factory used to create datagram handlers the will be
associated with newly created sessions for remote hostsconfig
- the configuration for a session associated with this handler
or null
to use the default configurationpublic DTLSServerHandler(IDatagramHandlerFactory handlerFactory, ISessionConfig config, ISessionStructureFactory factory)
handlerFactory
- the factory used to create datagram handlers the will be
associated with newly created sessions for remote hostsconfig
- the configuration for a session associated with this handler
or null
to use the default configurationfactory
- the factory used to configure the internal structure of a
session associated with this handler or null
to use the default structure factoryprotected IEngine createEngine(SocketAddress remoteAddress, ISessionConfig config) throws Exception
SSLEngine
created by the config.createSSLEngine()
method. If the config.createSSLEngine()
method returns null
the session being created
will not be an engine-driven session.createEngine
in class DatagramServerHandler
remoteAddress
- address of the remote peer for which the session is
about to be createdconfig
- the configuration for the session being creatednull
if the session being
created should not be engine-drivenException
- if the engine could not be createdCopyright © 2017–2021 SNF4J.ORG. All rights reserved.