Package com.linkedin.alpini.netty4.ssl
Class SecureClientHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- com.linkedin.alpini.netty4.ssl.SecureClientHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
@Sharable public class SecureClientHandler extends io.netty.channel.ChannelInboundHandlerAdapterThis is a port of the com.linkedin.security.netty.ssl.access.control.SecureClientHandler class as a netty 4 implementation. Created by acurtis on 9/7/17.
-
-
Field Summary
Fields Modifier and Type Field Description static io.netty.util.AttributeKey<java.security.cert.X509Certificate>CLIENT_CERTIFICATE_ATTRIBUTE_KEY
-
Constructor Summary
Constructors Constructor Description SecureClientHandler()SecureClientHandler(java.util.function.BiPredicate<io.netty.channel.ChannelHandlerContext,java.security.cert.X509Certificate> clientCertificateValidation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsslHandshakeComplete(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.ssl.SslHandshakeCompletionEvent evt)voiduserEventTriggered(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object evt)-
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
-
-
-
-
Method Detail
-
sslHandshakeComplete
protected void sslHandshakeComplete(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.ssl.SslHandshakeCompletionEvent evt)
-
userEventTriggered
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object evt) throws java.lang.Exception- Specified by:
userEventTriggeredin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
userEventTriggeredin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
java.lang.Exception
-
-