Class SaslExtensionsCallback
java.lang.Object
org.apache.kafka.common.security.auth.SaslExtensionsCallback
- All Implemented Interfaces:
Callback
public class SaslExtensionsCallback extends Object implements Callback
Optional callback used for SASL mechanisms if any extensions need to be set
in the SASL exchange.
-
Constructor Summary
Constructors Constructor Description SaslExtensionsCallback()
-
Method Summary
Modifier and Type Method Description SaslExtensions
extensions()
Returns always non-nullSaslExtensions
consisting of the extension names and values that are sent by the client to the server in the initial client SASL authentication message.void
extensions(SaslExtensions extensions)
Sets the SASL extensions on this callback.
-
Constructor Details
-
SaslExtensionsCallback
public SaslExtensionsCallback()
-
-
Method Details
-
extensions
Returns always non-nullSaslExtensions
consisting of the extension names and values that are sent by the client to the server in the initial client SASL authentication message. The default value isSaslExtensions.NO_SASL_EXTENSIONS
so that if this callback is unhandled the client will see a non-null value. -
extensions
Sets the SASL extensions on this callback.- Parameters:
extensions
- the mandatory extensions to set
-