Package org.apache.bookkeeper.sasl
Class SASLClientAuthProvider
java.lang.Object
org.apache.bookkeeper.sasl.SASLClientAuthProvider
- All Implemented Interfaces:
ClientAuthProvider
SASL Client Authentication Provider.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.bookkeeper.auth.ClientAuthProvider
ClientAuthProvider.Factory -
Constructor Summary
ConstructorsConstructorDescriptionSASLClientAuthProvider(ClientConnectionPeer addr, AuthCallbacks.GenericCallback<Void> completeCb, Subject subject) -
Method Summary
Modifier and TypeMethodDescriptionvoidInitiate the authentication.voidProcess a response from the server.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.bookkeeper.auth.ClientAuthProvider
close, onProtocolUpgrade
-
Constructor Details
-
SASLClientAuthProvider
SASLClientAuthProvider(ClientConnectionPeer addr, AuthCallbacks.GenericCallback<Void> completeCb, Subject subject)
-
-
Method Details
-
init
Description copied from interface:ClientAuthProviderInitiate the authentication. cb will receive the initial authentication message which should be sent to the server. cb may not be called if authentication is not requires. In this case, completeCb should be called.- Specified by:
initin interfaceClientAuthProvider
-
process
Description copied from interface:ClientAuthProviderProcess a response from the server. cb will receive the next message to be sent to the server. If there are no more messages to send to the server, cb should not be called, and completeCb must be called instead.- Specified by:
processin interfaceClientAuthProvider
-