Package io.netty.handler.ssl
Class SslMasterKeyHandler.WiresharkSslMasterKeyHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.ssl.SslMasterKeyHandler
io.netty.handler.ssl.SslMasterKeyHandler.WiresharkSslMasterKeyHandler
- All Implemented Interfaces:
ChannelHandler
,ChannelInboundHandler
- Enclosing class:
SslMasterKeyHandler
private static final class SslMasterKeyHandler.WiresharkSslMasterKeyHandler
extends SslMasterKeyHandler
Record the session identifier and master key to the
InternalLogger
named io.netty.wireshark
.
ex. RSA Session-ID:XXX Master-Key:YYY
This format is understood by Wireshark 1.6.0.
See: Wireshark
The key and session identifier are forwarded to the log named 'io.netty.wireshark'.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
Field Summary
FieldsFields inherited from class io.netty.handler.ssl.SslMasterKeyHandler
SYSTEM_PROP_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
accept
(SecretKey masterKey, SSLSession session) Consume the master key for the session and the sessionIdMethods inherited from class io.netty.handler.ssl.SslMasterKeyHandler
ensureSunSslEngineAvailability, isSunSslEngineAvailable, masterKeyHandlerEnabled, newWireSharkSslMasterKeyHandler, sunSslEngineUnavailabilityCause, userEventTriggered
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
wireshark_logger
-
-
Constructor Details
-
WiresharkSslMasterKeyHandler
private WiresharkSslMasterKeyHandler()
-
-
Method Details
-
accept
Description copied from class:SslMasterKeyHandler
Consume the master key for the session and the sessionId- Specified by:
accept
in classSslMasterKeyHandler
- Parameters:
masterKey
- A 48-byte secret shared between the client and server.session
- The current TLS session
-