Class ProtonSaslHandler
java.lang.Object
org.apache.qpid.protonj2.engine.impl.sasl.ProtonSaslHandler
- All Implemented Interfaces:
- EngineHandler
Base class used for common portions of the SASL processing pipeline.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidengineStarting(EngineHandlerContext context) Called when the engine is started to allow handlers to prepare for use based on the configuration state at start of the engine.voidhandlerAdded(EngineHandlerContext context) Called when the handler is successfully added to theEnginePipelineand will later be initialized before use.voidhandleRead(EngineHandlerContext context, HeaderEnvelope header) Handle the receipt of an incoming AMQP Header or SASL Header based on the current state of this handler.voidhandleRead(EngineHandlerContext context, IncomingAMQPEnvelope frame) Handle the receipt of an incoming AMQP envelope based on the current state of this handler.voidhandleRead(EngineHandlerContext context, SASLEnvelope frame) Handle the receipt of an incoming SASL performative based on the current state of this handler.voidhandlerRemoved(EngineHandlerContext context) Called when the handler is successfully removed to theEnginePipeline.voidhandleWrite(EngineHandlerContext context, HeaderEnvelope frame) Handles write of AMQPHeader either by directly writing it to the output target or by converting it to bytes and firing a write using theProtonBufferbased API inEngineHandlerContext.fireWrite(ProtonBuffer, Runnable)voidhandleWrite(EngineHandlerContext context, OutgoingAMQPEnvelope frame) Handles write of AMQP performative envelope either by directly writing it to the output target or by converting it to bytes and firing a write using theProtonBufferbased API inEngineHandlerContext.fireWrite(ProtonBuffer, Runnable)voidhandleWrite(EngineHandlerContext context, SASLEnvelope frame) Handles write of SaslPerformative either by directly writing it to the output target or by converting it to bytes and firing a write using theProtonBufferbased API inEngineHandlerContext.fireWrite(ProtonBuffer, Runnable)booleanisDone()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.qpid.protonj2.engine.EngineHandlerengineFailed, handleEngineStateChanged, handleRead, handleWrite
- 
Constructor Details- 
ProtonSaslHandlerpublic ProtonSaslHandler()
 
- 
- 
Method Details- 
isDonepublic boolean isDone()- Returns:
- true if the SASL exchange has finished (succeed or failed).
 
- 
handlerAddedDescription copied from interface:EngineHandlerCalled when the handler is successfully added to theEnginePipelineand will later be initialized before use.- Specified by:
- handlerAddedin interface- EngineHandler
- Parameters:
- context- The context that is assigned to this handler.
 
- 
handlerRemovedDescription copied from interface:EngineHandlerCalled when the handler is successfully removed to theEnginePipeline.- Specified by:
- handlerRemovedin interface- EngineHandler
- Parameters:
- context- The context that is assigned to this handler.
 
- 
engineStartingDescription copied from interface:EngineHandlerCalled when the engine is started to allow handlers to prepare for use based on the configuration state at start of the engine. A handler can fail the engine start by throwing an exception.- Specified by:
- engineStartingin interface- EngineHandler
- Parameters:
- context- The context for this handler which can be used to forward the event to the next handler
 
- 
handleReadDescription copied from interface:EngineHandlerHandle the receipt of an incoming AMQP Header or SASL Header based on the current state of this handler.- Specified by:
- handleReadin interface- EngineHandler
- Parameters:
- context- The context for this handler which can be used to forward the event to the next handler
- header- The AMQP Header envelope that wraps the received header instance.
 
- 
handleReadDescription copied from interface:EngineHandlerHandle the receipt of an incoming SASL performative based on the current state of this handler.- Specified by:
- handleReadin interface- EngineHandler
- Parameters:
- context- The context for this handler which can be used to forward the event to the next handler
- frame- The SASL envelope that wraps the received- SaslPerformative.
 
- 
handleReadDescription copied from interface:EngineHandlerHandle the receipt of an incoming AMQP envelope based on the current state of this handler.- Specified by:
- handleReadin interface- EngineHandler
- Parameters:
- context- The context for this handler which can be used to forward the event to the next handler
- frame- The AMQP envelope that wraps the received- Performative.
 
- 
handleWriteDescription copied from interface:EngineHandlerHandles write of AMQPHeader either by directly writing it to the output target or by converting it to bytes and firing a write using theProtonBufferbased API inEngineHandlerContext.fireWrite(ProtonBuffer, Runnable)- Specified by:
- handleWritein interface- EngineHandler
- Parameters:
- context- The- EngineHandlerContextassociated with this- EngineHandlerinstance.
- frame- The- HeaderEnvelopeinstance to write.
 
- 
handleWriteDescription copied from interface:EngineHandlerHandles write of AMQP performative envelope either by directly writing it to the output target or by converting it to bytes and firing a write using theProtonBufferbased API inEngineHandlerContext.fireWrite(ProtonBuffer, Runnable)- Specified by:
- handleWritein interface- EngineHandler
- Parameters:
- context- The- EngineHandlerContextassociated with this- EngineHandlerinstance.
- frame- The- OutgoingAMQPEnvelopeinstance to write.
 
- 
handleWriteDescription copied from interface:EngineHandlerHandles write of SaslPerformative either by directly writing it to the output target or by converting it to bytes and firing a write using theProtonBufferbased API inEngineHandlerContext.fireWrite(ProtonBuffer, Runnable)- Specified by:
- handleWritein interface- EngineHandler
- Parameters:
- context- The- EngineHandlerContextassociated with this- EngineHandlerinstance.
- frame- The- SASLEnvelopeinstance to write.
 
 
-