Class ProtonEngineNoOpSaslDriver
java.lang.Object
org.apache.qpid.protonj2.engine.impl.ProtonEngineNoOpSaslDriver
- All Implemented Interfaces:
- EngineSaslDriver
A Default No-Op SASL context that is used to provide the engine with a stub
 when no SASL is configured for the operating engine.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.qpid.protonj2.engine.EngineSaslDriverEngineSaslDriver.SaslState
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ProtonEngineNoOpSaslDriverDefault singleton instance of the No-Op SASL engine driver.static final intAMQP specified default value for maximum SASL frame size.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclient()Configure thisEngineSaslDriverto operate in client mode and return the associatedSaslClientContextinstance that should be used to complete the SASL negotiation with the server end.intProvides a low level outcome value for the SASL authentication process.Returns a SaslState that indicates the current operating state of the SASL negotiation process or conversely if no SASL layer is configured this method should return the disabled state.server()Configure thisEngineSaslDriverto operate in server mode and return the associatedSaslServerContextinstance that should be used to complete the SASL negotiation with the client end.voidsetMaxFrameSize(int maxFrameSize) Set the maximum frame size the remote can send before an error is indicated.
- 
Field Details- 
INSTANCEDefault singleton instance of the No-Op SASL engine driver.
- 
MIN_MAX_SASL_FRAME_SIZEpublic static final int MIN_MAX_SASL_FRAME_SIZEAMQP specified default value for maximum SASL frame size.- See Also:
 
 
- 
- 
Constructor Details- 
ProtonEngineNoOpSaslDriverpublic ProtonEngineNoOpSaslDriver()
 
- 
- 
Method Details- 
getSaslStateDescription copied from interface:EngineSaslDriverReturns a SaslState that indicates the current operating state of the SASL negotiation process or conversely if no SASL layer is configured this method should return the disabled state. This method must never return a null result.- Specified by:
- getSaslStatein interface- EngineSaslDriver
- Returns:
- the current state of SASL Authentication.
 
- 
getSaslOutcomeDescription copied from interface:EngineSaslDriverProvides a low level outcome value for the SASL authentication process.If the SASL exchange is ongoing or the SASL layer was skipped because a particular engine configuration allows such behavior then this method should return null to indicate no SASL outcome is available. - Specified by:
- getSaslOutcomein interface- EngineSaslDriver
- Returns:
- the SASL outcome code that results from authentication
 
- 
getMaxFrameSizepublic int getMaxFrameSize()- Specified by:
- getMaxFrameSizein interface- EngineSaslDriver
- Returns:
- the currently configured max frame size allowed for SASL frames.
 
- 
setMaxFrameSizepublic void setMaxFrameSize(int maxFrameSize) Description copied from interface:EngineSaslDriverSet the maximum frame size the remote can send before an error is indicated.- Specified by:
- setMaxFrameSizein interface- EngineSaslDriver
- Parameters:
- maxFrameSize- The maximum allowed frame size from the remote sender.
 
- 
clientDescription copied from interface:EngineSaslDriverConfigure thisEngineSaslDriverto operate in client mode and return the associatedSaslClientContextinstance that should be used to complete the SASL negotiation with the server end.- Specified by:
- clientin interface- EngineSaslDriver
- Returns:
- the SASL client context.
 
- 
serverDescription copied from interface:EngineSaslDriverConfigure thisEngineSaslDriverto operate in server mode and return the associatedSaslServerContextinstance that should be used to complete the SASL negotiation with the client end.- Specified by:
- serverin interface- EngineSaslDriver
- Returns:
- the SASL server context.
 
 
-