Class SASLEnvelope

    • Field Detail

      • SASL_FRAME_TYPE

        public static final byte SASL_FRAME_TYPE
        The frame type marker used when decoding or encoding AMQP Header frames.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SASLEnvelope

        public SASLEnvelope​(SaslPerformative performative)
        Creates a new SASL envelope that wraps the given SASL performative.
        Parameters:
        performative - The SASL performative to be wrapped.
      • SASLEnvelope

        public SASLEnvelope​(SaslPerformative performative,
                            ProtonBuffer payload)
        Creates a new SASL envelope that wraps the given SASL performative.
        Parameters:
        performative - The SASL performative to be wrapped.
        payload - The payload that accompanies the wrapped SASL performative.
    • Method Detail

      • invoke

        public <E> void invoke​(SaslPerformative.SaslPerformativeHandler<E> handler,
                               E context)
        Invoke the correct handler based on the SASL performative contained in this envelope.
        Type Parameters:
        E - The type of the context object that accompanies the invocation.
        Parameters:
        handler - The AMQPHeader.HeaderHandler that should be invoked based on the performative type.
        context - The context value to provide when signaling the SASL handler.