Package com.linkedin.venice.listener
Class ServerHandlerUtils
java.lang.Object
com.linkedin.venice.listener.ServerHandlerUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic X509CertificateextractClientCert(io.netty.channel.ChannelHandlerContext ctx) static StringextractClientPrincipal(io.netty.channel.ChannelHandlerContext ctx) static io.netty.handler.ssl.SslHandlerextractSslHandler(io.netty.channel.ChannelHandlerContext ctx) static io.netty.channel.ChannelgetOriginalChannel(io.netty.channel.ChannelHandlerContext ctx) Return the channel, which contains the ssl handler and it could be the current channel (http/1.x) or the parent channel (http/2).
-
Constructor Details
-
ServerHandlerUtils
public ServerHandlerUtils()
-
-
Method Details
-
extractSslHandler
public static io.netty.handler.ssl.SslHandler extractSslHandler(io.netty.channel.ChannelHandlerContext ctx) -
getOriginalChannel
public static io.netty.channel.Channel getOriginalChannel(io.netty.channel.ChannelHandlerContext ctx) Return the channel, which contains the ssl handler and it could be the current channel (http/1.x) or the parent channel (http/2). -
extractClientCert
public static X509Certificate extractClientCert(io.netty.channel.ChannelHandlerContext ctx) throws SSLPeerUnverifiedException - Throws:
SSLPeerUnverifiedException
-
extractClientPrincipal
-