Class LibPQFactory.ConsoleCallbackHandler

  • All Implemented Interfaces:
    javax.security.auth.callback.CallbackHandler
    Enclosing class:
    LibPQFactory

    public static class LibPQFactory.ConsoleCallbackHandler
    extends java.lang.Object
    implements javax.security.auth.callback.CallbackHandler
    A CallbackHandler that reads the password from the console or returns the password given to its constructor.
    • Method Summary

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

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

      • handle

        public void handle​(javax.security.auth.callback.Callback[] callbacks)
                    throws java.io.IOException,
                           javax.security.auth.callback.UnsupportedCallbackException
        Handles the callbacks.
        Specified by:
        handle in interface javax.security.auth.callback.CallbackHandler
        Parameters:
        callbacks - The callbacks to handle
        Throws:
        javax.security.auth.callback.UnsupportedCallbackException - If the console is not available or other than PasswordCallback is supplied
        java.io.IOException