Class PlainAuthenticateCallback
java.lang.Object
org.apache.kafka.common.security.plain.PlainAuthenticateCallback
- All Implemented Interfaces:
- Callback
- 
Constructor SummaryConstructorsConstructorDescriptionPlainAuthenticateCallback(char[] password) Creates a callback with the password provided by the client
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns true if client password matches expected password, false otherwise.voidauthenticated(boolean authenticated) Sets the authenticated state.char[]password()Returns the password provided by the client during SASL/PLAIN authentication
- 
Constructor Details- 
PlainAuthenticateCallbackpublic PlainAuthenticateCallback(char[] password) Creates a callback with the password provided by the client- Parameters:
- password- The password provided by the client during SASL/PLAIN authentication
 
 
- 
- 
Method Details- 
passwordpublic char[] password()Returns the password provided by the client during SASL/PLAIN authentication
- 
authenticatedpublic boolean authenticated()Returns true if client password matches expected password, false otherwise. This state is set the server-side callback handler.
- 
authenticatedpublic void authenticated(boolean authenticated) Sets the authenticated state. This is set by the server-side callback handler by matching the client provided password with the expected password.- Parameters:
- authenticated- true indicates successful authentication
 
 
-