public class SessionConfig extends DefaultSessionConfig
Modifier and Type | Method and Description |
---|---|
ICodecExecutor |
createCodecExecutor()
Creates a new codec executor that will be responsible for decoding and
encoding data read/received and written/send in the associated session.
|
SSLEngine |
createSSLEngine(boolean clientMode)
Creates a new SSLEngine for the SSL/DTLS session.
|
addSSLEngineBuilder, alwaysNotifiedBeingInPipeline, createSSLEngine, getDatagramServerSessionNoReopenPeriod, getEndingAction, getEngineHandshakeTimeout, getMaxInBufferCapacity, getMaxSSLApplicationBufferSizeRatio, getMaxSSLNetworkBufferSizeRatio, getMaxWriteSpinCount, getMinInBufferCapacity, getMinOutBufferCapacity, getSSLEngineBuilder, getThroughputCalculationInterval, ignorePossiblyIncompleteDatagrams, optimizeDataCopying, removeSSLEngineBuilder, setAlwaysNotifiedBeingInPipeline, setDatagramServerSessionNoReopenPeriod, setEndingAction, setEngineHandshakeTimeout, setIgnorePossiblyIncompleteDatagrams, setMaxInBufferCapacity, setMaxSSLApplicationBufferSizeRatio, setMaxSSLNetworkBufferSizeRatio, setMaxWriteSpinCount, setMinInBufferCapacity, setMinOutBufferCapacity, setOptimizeDataCopying, setThroughputCalculationInterval, setWaitForInboundCloseMessage, waitForInboundCloseMessage
public SSLEngine createSSLEngine(boolean clientMode) throws SSLEngineCreateException
DefaultSessionConfig
By default, if no SSLEngine builder is configured for the specified
handshaking mode, it returns the engine created by calling the
SSLContext.getDefault().createSSLEngine()
createSSLEngine
in interface ISessionConfig
createSSLEngine
in class DefaultSessionConfig
clientMode
- true
if the engine should start its handshaking
in client modeSSLEngineCreateException
- when the SSL engine could not be createdpublic ICodecExecutor createCodecExecutor()
DefaultSessionConfig
The default value is null
createCodecExecutor
in interface ISessionConfig
createCodecExecutor
in class DefaultSessionConfig
null
if decoding and encoding
is not required.Copyright © 2017–2022 SNF4J.ORG. All rights reserved.