Class ScramExtensionsCallback
- java.lang.Object
-
- org.apache.kafka.common.security.scram.ScramExtensionsCallback
-
- All Implemented Interfaces:
javax.security.auth.callback.Callback
public class ScramExtensionsCallback extends java.lang.Object implements javax.security.auth.callback.Callback
Optional callback used for SCRAM mechanisms if any extensions need to be set in the SASL/SCRAM exchange.
-
-
Constructor Summary
Constructors Constructor Description ScramExtensionsCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
extensions()
Returns map of the extension names and values that are sent by the client to the server in the initial client SCRAM authentication message.void
extensions(java.util.Map<java.lang.String,java.lang.String> extensions)
Sets the SCRAM extensions on this callback.
-
-
-
Method Detail
-
extensions
public java.util.Map<java.lang.String,java.lang.String> extensions()
Returns map of the extension names and values that are sent by the client to the server in the initial client SCRAM authentication message. Default is an empty unmodifiable map.
-
extensions
public void extensions(java.util.Map<java.lang.String,java.lang.String> extensions)
Sets the SCRAM extensions on this callback. Maps passed in should be unmodifiable
-
-