Class OcspClientHandler

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

    @UnstableApi
    public abstract class OcspClientHandler
    extends io.netty.channel.ChannelInboundHandlerAdapter
    A handler for SSL clients to handle and act upon stapled OCSP responses.
    See Also:
    ReferenceCountedOpenSslContext#enableOcsp(), ReferenceCountedOpenSslEngine.getOcspResponse()
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected OcspClientHandler​(io.netty.handler.ssl.ReferenceCountedOpenSslEngine engine)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void userEventTriggered​(io.netty.channel.ChannelHandlerContext ctx, Object evt)  
      protected abstract boolean verify​(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.ssl.ReferenceCountedOpenSslEngine engine)  
      • 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 interface io.netty.channel.ChannelHandler

        handlerAdded, handlerRemoved
    • Constructor Detail

      • OcspClientHandler

        protected OcspClientHandler​(io.netty.handler.ssl.ReferenceCountedOpenSslEngine engine)
    • Method Detail

      • verify

        protected abstract boolean verify​(io.netty.channel.ChannelHandlerContext ctx,
                                          io.netty.handler.ssl.ReferenceCountedOpenSslEngine engine)
                                   throws Exception
        Throws:
        Exception
        See Also:
        ReferenceCountedOpenSslEngine.getOcspResponse()
      • userEventTriggered

        public void userEventTriggered​(io.netty.channel.ChannelHandlerContext ctx,
                                       Object evt)
                                throws Exception
        Specified by:
        userEventTriggered in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        userEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapter
        Throws:
        Exception