Package org.postgresql.ssl
Class LibPQFactory.ConsoleCallbackHandler
java.lang.Object
org.postgresql.ssl.LibPQFactory.ConsoleCallbackHandler
- All Implemented Interfaces:
CallbackHandler
- Enclosing class:
- LibPQFactory
A CallbackHandler that reads the password from the console or returns the password given to its
constructor.
-
Method Summary
-
Method Details
-
handle
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
-