Class SaslOutcomeFrame

  • All Implemented Interfaces:
    SaslFrameIF, FrameIF, Writable

    public class SaslOutcomeFrame
    extends AMQPFrame
    implements SaslFrameIF

    This frame indicates the outcome of the SASL dialog. Upon successful completion of the SASL dialog the security layer has been established, and the peers must exchange protocol headers to either start a nested security layer, or to establish the AMQP connection.

    Version:
    AMQP Version v100. Generation Date: Wed Apr 18 14:09:32 CEST 2012
    Author:
    IIT Software GmbH, Bremen/Germany, (c) 2012, All Rights Reserved
    • Constructor Detail

      • SaslOutcomeFrame

        public SaslOutcomeFrame​(int channel,
                                AMQPList body)
                         throws java.lang.Exception
        Constructs a SaslOutcomeFrame.
        Parameters:
        channel - the channel id
        body - the frame body
        Throws:
        java.lang.Exception
      • SaslOutcomeFrame

        public SaslOutcomeFrame​(int channel)
        Constructs a SaslOutcomeFrame.
        Parameters:
        channel - the channel id
    • Method Detail

      • getMycode

        public SaslCode getMycode()
        Returns the mandatory Mycode field.
        Returns:
        Mycode
      • setMycode

        public void setMycode​(SaslCode mycode)
        Sets the mandatory Mycode field.

        A reply-code indicating the outcome of the SASL dialog.

        Parameters:
        mycode - Mycode
      • getAdditionalData

        public AMQPBinary getAdditionalData()
        Returns the optional AdditionalData field.
        Returns:
        AdditionalData
      • setAdditionalData

        public void setAdditionalData​(AMQPBinary additionalData)
        Sets the optional AdditionalData field.

        The additional-data field carries additional data on successful authentication outcome as specified by the SASL specification [ RFC4422 ]. If the authentication is unsuccessful, this field is not set.

        Parameters:
        additionalData - AdditionalData
      • writeBody

        protected void writeBody​(java.io.DataOutput out)
                          throws java.io.IOException
        Specified by:
        writeBody in class AMQPFrame
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class AMQPFrame