Package org.apache.bookkeeper.sasl
Class SASLClientAuthProvider
- java.lang.Object
-
- org.apache.bookkeeper.sasl.SASLClientAuthProvider
-
- All Implemented Interfaces:
ClientAuthProvider
public class SASLClientAuthProvider extends java.lang.Object implements ClientAuthProvider
SASL Client Authentication Provider.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.bookkeeper.auth.ClientAuthProvider
ClientAuthProvider.Factory
-
-
Constructor Summary
Constructors Constructor Description SASLClientAuthProvider(ClientConnectionPeer addr, AuthCallbacks.GenericCallback<java.lang.Void> completeCb, javax.security.auth.Subject subject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(AuthCallbacks.GenericCallback<AuthToken> cb)Initiate the authentication.voidprocess(AuthToken m, AuthCallbacks.GenericCallback<AuthToken> cb)Process a response from the server.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.bookkeeper.auth.ClientAuthProvider
close, onProtocolUpgrade
-
-
-
-
Constructor Detail
-
SASLClientAuthProvider
SASLClientAuthProvider(ClientConnectionPeer addr, AuthCallbacks.GenericCallback<java.lang.Void> completeCb, javax.security.auth.Subject subject)
-
-
Method Detail
-
init
public void init(AuthCallbacks.GenericCallback<AuthToken> cb)
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
public void process(AuthToken m, AuthCallbacks.GenericCallback<AuthToken> cb)
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
-
-