com.ibm.websphere.security.auth.callback
Class WSGUICallbackHandlerImpl
java.lang.Object
|
+--com.ibm.websphere.security.auth.callback.WSGUICallbackHandlerImpl
- All Implemented Interfaces:
- javax.security.auth.callback.CallbackHandler
- public class WSGUICallbackHandlerImpl
- extends java.lang.Object
- implements javax.security.auth.callback.CallbackHandler
The WSGUICallbackHandlerImpl
gathers the authentication data from GUI and pushs the data
to the login module. These data includes principal name and password. If the realm name can not
determined at the time of login prompt, a "<default>" realm name will be displayed.
Supported Callback
s:
javax.security.auth.callback.NameCallback
javax.security.auth.callback.PasswordCallback
- Since:
- 1.0
- Version:
- 1.0
- See Also:
javax.security.auth.callback.NameCallback
,
javax.security.auth.callback.PasswordCallback
Method Summary |
void |
handle(javax.security.auth.callback.Callback[] callbacks)
This implementation of WSGUICallbackHandler collect the username and password data from
login prompt and pushes them to the login module. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSGUICallbackHandlerImpl
public WSGUICallbackHandlerImpl()
- Constructor does not do anything except tracing.
handle
public void handle(javax.security.auth.callback.Callback[] callbacks)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
This implementation of WSGUICallbackHandler
collect the username and password data from
login prompt and pushes them to the login module. If the realm name can not determined at the time
of login prompt, a "<default>" realm name will be displayed.
Use prompt strings of each callback object passed to the method. If there is no prompt string
is defined, use WebSphere's default string.
- Specified by:
handle
in interface javax.security.auth.callback.CallbackHandler
- Parameters:
callbacks
- An array of Callback
objects provided by the underlying
security service which contains the information
requested 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
Callback
s specified in the callbacks parameter.