Class SaslOutcomeFrame
java.lang.Object
com.swiftmq.amqp.v100.transport.AMQPFrame
com.swiftmq.amqp.v100.generated.security.sasl.SaslOutcomeFrame
- All Implemented Interfaces:
SaslFrameIF
,FrameIF
,Writable
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
-
Field Summary
FieldsFields inherited from class com.swiftmq.amqp.v100.transport.AMQPFrame
HEADER_SIZE, TYPE_CODE_AMQP_FRAME, TYPE_CODE_SASL_FRAME
-
Constructor Summary
ConstructorsConstructorDescriptionSaslOutcomeFrame
(int channel) Constructs a SaslOutcomeFrame.SaslOutcomeFrame
(int channel, AMQPList body) Constructs a SaslOutcomeFrame. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(SaslFrameVisitor visitor) Accept method for a SaslFrame visitor.Returns the optional AdditionalData field.Returns the mandatory Mycode field.int
Returns the predicted size of this SaslOutcomeFrame.Returns a value representation of this SaslOutcomeFrame.void
setAdditionalData
(AMQPBinary additionalData) Sets the optional AdditionalData field.void
Sets the mandatory Mycode field.toString()
protected void
writeBody
(DataOutput out) Methods inherited from class com.swiftmq.amqp.v100.transport.AMQPFrame
accept, addMorePayload, getCallback, getChannel, getMorePayloads, getPayload, getPayloadLength, getSemaphore, setCallback, setChannel, setPayload, setSemaphore, setTypeCode, writeContent
-
Field Details
-
DESCRIPTOR_NAME
-
DESCRIPTOR_CODE
public static long DESCRIPTOR_CODE -
codeConstructor
-
nameConstructor
-
-
Constructor Details
-
SaslOutcomeFrame
Constructs a SaslOutcomeFrame.- Parameters:
channel
- the channel idbody
- the frame body- Throws:
Exception
-
SaslOutcomeFrame
public SaslOutcomeFrame(int channel) Constructs a SaslOutcomeFrame.- Parameters:
channel
- the channel id
-
-
Method Details
-
accept
Accept method for a SaslFrame visitor.- Specified by:
accept
in interfaceSaslFrameIF
- Overrides:
accept
in classAMQPFrame
- Parameters:
visitor
- SaslFrame visitor
-
getMycode
Returns the mandatory Mycode field.- Returns:
- Mycode
-
setMycode
Sets the mandatory Mycode field.A reply-code indicating the outcome of the SASL dialog.
- Parameters:
mycode
- Mycode
-
getAdditionalData
Returns the optional AdditionalData field.- Returns:
- AdditionalData
-
setAdditionalData
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
-
getPredictedSize
public int getPredictedSize()Returns the predicted size of this SaslOutcomeFrame. The predicted size may be greater than the actual size but it can never be less.- Specified by:
getPredictedSize
in interfaceFrameIF
- Specified by:
getPredictedSize
in interfaceSaslFrameIF
- Overrides:
getPredictedSize
in classAMQPFrame
- Returns:
- predicted size
-
writeBody
- Specified by:
writeBody
in classAMQPFrame
- Throws:
IOException
-
getValueString
Returns a value representation of this SaslOutcomeFrame.- Specified by:
getValueString
in interfaceFrameIF
- Specified by:
getValueString
in interfaceSaslFrameIF
- Overrides:
getValueString
in classAMQPFrame
- Returns:
- value representation
-
toString
-