Package org.postgresql.ssl
Class LibPQFactory.ConsoleCallbackHandler
- java.lang.Object
-
- org.postgresql.ssl.LibPQFactory.ConsoleCallbackHandler
-
- All Implemented Interfaces:
CallbackHandler
- Enclosing class:
- LibPQFactory
public static class LibPQFactory.ConsoleCallbackHandler extends Object implements CallbackHandler
A CallbackHandler that reads the password from the console or returns the password given to its constructor.
-
-
Method Detail
-
handle
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
Handles the callbacks.- Specified by:
handle
in interfaceCallbackHandler
- Parameters:
callbacks
- The callbacks to handle- Throws:
UnsupportedCallbackException
- If the console is not available or other than PasswordCallback is suppliedIOException
-
-