Package org.postgresql.ssl
Class LibPQFactory.ConsoleCallbackHandler
- java.lang.Object
-
- org.postgresql.ssl.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.CallbackHandlerA 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 voidhandle(javax.security.auth.callback.Callback[] callbacks)Handles the callbacks.
-
-
-
Method Detail
-
handle
public void handle(javax.security.auth.callback.Callback[] callbacks) throws java.io.IOException, javax.security.auth.callback.UnsupportedCallbackExceptionHandles the callbacks.- Specified by:
handlein interfacejavax.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 suppliedjava.io.IOException
-
-