Class SignatureHandler

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

    public class SignatureHandler
    extends SimpleChannelDuplexHandler<Message,​Message>
    Acts as a guard for in- and outbound messages.
    Signs automatically outbound messages.
    Validates automatically inbound messages and drops them, iff a signature is invalid or if a validation is impossible, e.g. the public key of the sender is unknown. In this case, drop information is written to the log.