Class SASLEnvelope


public class SASLEnvelope extends PerformativeEnvelope<SaslPerformative>
Frame object containing a SASL performative
  • Field Details

    • SASL_FRAME_TYPE

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

    • 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 Details

    • 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.