Class SaslClientCallbackHandler

  • All Implemented Interfaces:
    javax.security.auth.callback.CallbackHandler

    public class SaslClientCallbackHandler
    extends java.lang.Object
    implements javax.security.auth.callback.CallbackHandler
    This is used by the SASL mechanisms to get further information to complete the authentication. For example, a SASL mechanism might use this callback handler to do verification operation. The CallbackHandler interface here refers to javax.security.auth.callback.CallbackHandler. It should not be confused with ZooKeeper packet callbacks like org.apache.zookeeper.server.auth.SaslServerCallbackHandler.
    • Constructor Summary

      Constructors 
      Constructor Description
      SaslClientCallbackHandler​(java.lang.String password, java.lang.String client)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handle​(javax.security.auth.callback.Callback[] callbacks)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SaslClientCallbackHandler

        public SaslClientCallbackHandler​(java.lang.String password,
                                         java.lang.String client)
    • Method Detail

      • handle

        public void handle​(javax.security.auth.callback.Callback[] callbacks)
                    throws javax.security.auth.callback.UnsupportedCallbackException
        Specified by:
        handle in interface javax.security.auth.callback.CallbackHandler
        Throws:
        javax.security.auth.callback.UnsupportedCallbackException