Package org.apache.qpid.protonj2.client
Class SaslOptions
java.lang.Object
org.apache.qpid.protonj2.client.SaslOptions
Connection options that are applied to the SASL layer.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final booleanThe client default configuration value for SASL enabled state (default is true)
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a newSaslOptionsinstance configured with default configuration settings.
- 
Method SummaryModifier and TypeMethodDescriptionaddAllowedMechanism(String mechanism) Adds a mechanism to the list of allowed SASL mechanisms this client will use when selecting from the remote peers offered set of SASL mechanisms.clone()copyInto(SaslOptions other) Copy all configuration into the givenSaslOptionsfrom this instance.booleansaslEnabled(boolean saslEnabled) 
- 
Field Details- 
DEFAULT_SASL_ENABLEDpublic static final boolean DEFAULT_SASL_ENABLEDThe client default configuration value for SASL enabled state (default is true)- See Also:
 
 
- 
- 
Constructor Details- 
SaslOptionspublic SaslOptions()Create a newSaslOptionsinstance configured with default configuration settings.
 
- 
- 
Method Details- 
clone
- 
saslEnabledpublic boolean saslEnabled()- Returns:
- the saslLayer
 
- 
saslEnabled- Parameters:
- saslEnabled- the saslLayer to set
- Returns:
- this options instance.
 
- 
addAllowedMechanismAdds a mechanism to the list of allowed SASL mechanisms this client will use when selecting from the remote peers offered set of SASL mechanisms. If no allowed mechanisms are configured then the client will select the first mechanism from the server offered mechanisms that is supported.- Parameters:
- mechanism- The mechanism to allow.
- Returns:
- this options object for chaining.
 
- 
allowedMechanisms- Returns:
- the current list of allowed SASL Mechanisms.
 
- 
copyIntoCopy all configuration into the givenSaslOptionsfrom this instance.- Parameters:
- other- another- SaslOptionsinstance that will receive the configuration from this instance.
- Returns:
- the options instance that was copied into.
 
 
-