Class SaslChallengeFrame
java.lang.Object
com.swiftmq.amqp.v100.transport.AMQPFrame
com.swiftmq.amqp.v100.generated.security.sasl.SaslChallengeFrame
- All Implemented Interfaces:
SaslFrameIF
,FrameIF
,Writable
Send the SASL challenge data as defined by the SASL specification.
- 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
ConstructorsConstructorDescriptionSaslChallengeFrame
(int channel) Constructs a SaslChallengeFrame.SaslChallengeFrame
(int channel, AMQPList body) Constructs a SaslChallengeFrame. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(SaslFrameVisitor visitor) Accept method for a SaslFrame visitor.Returns the mandatory Challenge field.int
Returns the predicted size of this SaslChallengeFrame.Returns a value representation of this SaslChallengeFrame.void
setChallenge
(AMQPBinary challenge) Sets the mandatory Challenge 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
-
SaslChallengeFrame
Constructs a SaslChallengeFrame.- Parameters:
channel
- the channel idbody
- the frame body- Throws:
Exception
-
SaslChallengeFrame
public SaslChallengeFrame(int channel) Constructs a SaslChallengeFrame.- 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
-
getChallenge
Returns the mandatory Challenge field.- Returns:
- Challenge
-
setChallenge
Sets the mandatory Challenge field.Challenge information, a block of opaque binary data passed to the security mechanism.
- Parameters:
challenge
- Challenge
-
getPredictedSize
public int getPredictedSize()Returns the predicted size of this SaslChallengeFrame. 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 SaslChallengeFrame.- Specified by:
getValueString
in interfaceFrameIF
- Specified by:
getValueString
in interfaceSaslFrameIF
- Overrides:
getValueString
in classAMQPFrame
- Returns:
- value representation
-
toString
-