Class UserCallBackHandler
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.login.UserCallBackHandler
-
- All Implemented Interfaces:
javax.security.auth.callback.CallbackHandler
public class UserCallBackHandler extends java.lang.Object implements javax.security.auth.callback.CallbackHandler
The application implements the CallbackHandler. This application is text-based. Therefore it displays information to the user using the OutputStreams System.out and System.err, and gathers input from the user using the InputStream System.in.
-
-
Constructor Summary
Constructors Constructor Description UserCallBackHandler(java.lang.String name, java.lang.String password)
-
Method Summary
Modifier and Type Method Description void
handle(javax.security.auth.callback.Callback[] callbacks)
Invoke an array of Callbacks.
-
-
-
Method Detail
-
handle
public void handle(javax.security.auth.callback.Callback[] callbacks) throws java.io.IOException, javax.security.auth.callback.UnsupportedCallbackException
Invoke an array of Callbacks.- Specified by:
handle
in interfacejavax.security.auth.callback.CallbackHandler
- Parameters:
callbacks
- an array ofCallback
objects which contain the information requested by an underlying security service to be retrieved or displayed.- Throws:
java.io.IOException
- if an input or output error occurs.javax.security.auth.callback.UnsupportedCallbackException
- if the implementation of this method does not support one or more of the Callbacks specified in thecallbacks
parameter.
-
-