Class PlainSaslClientCallbackHandler

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

    public final class PlainSaslClientCallbackHandler
    extends java.lang.Object
    implements javax.security.auth.callback.CallbackHandler
    A client side callback to put application provided username/password into SASL transport.
    • Constructor Summary

      Constructors 
      Constructor Description
      PlainSaslClientCallbackHandler​(java.lang.String userName, java.lang.String password)
      Constructs a new client side callback.
    • 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

      • PlainSaslClientCallbackHandler

        public PlainSaslClientCallbackHandler​(java.lang.String userName,
                                              java.lang.String password)
        Constructs a new client side callback.
        Parameters:
        userName - the name of the user
        password - the password
    • Method Detail

      • handle

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