Class ServerHandlerUtils

java.lang.Object
com.linkedin.venice.listener.ServerHandlerUtils

public class ServerHandlerUtils extends Object
  • 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