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 theInternalLogger
namedio.netty.wireshark
. ex.RSA Session-ID:XXX Master-Key:YYY
This format is understood by Wireshark 1.6.0. https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=686d4cabb41185591c361f9ec6b709034317144b 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
Fields Modifier and Type Field Description private static char[]
hexCode
private static InternalLogger
wireshark_logger
-
Fields inherited from class io.netty.handler.ssl.SslMasterKeyHandler
SYSTEM_PROP_KEY
-
-
Constructor Summary
Constructors Modifier Constructor Description private
WiresharkSslMasterKeyHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
accept(javax.crypto.SecretKey masterKey, javax.net.ssl.SSLSession session)
Consume the master key for the session and the sessionId-
Methods inherited from class io.netty.handler.ssl.SslMasterKeyHandler
ensureSunSslEngineAvailability, isSunSslEngineAvailable, 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 Detail
-
wireshark_logger
private static final InternalLogger wireshark_logger
-
hexCode
private static final char[] hexCode
-
-
Method Detail
-
accept
protected void accept(javax.crypto.SecretKey masterKey, javax.net.ssl.SSLSession session)
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
-
-