org.ow2.jonas.security.auth.callback
Class LoginCallbackHandler
java.lang.Object
org.ow2.jonas.security.auth.callback.LoginCallbackHandler
- All Implemented Interfaces:
- CallbackHandler
public class LoginCallbackHandler
- extends Object
- implements CallbackHandler
Come from the JAAS authentication tutorial 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.
- Author:
- Sun Tutorial
Method Summary |
void |
handle(Callback[] callbacks)
Invoke an array of Callbacks. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoginCallbackHandler
public LoginCallbackHandler()
handle
public void handle(Callback[] callbacks)
throws IOException,
UnsupportedCallbackException
- Invoke an array of Callbacks.
- Specified by:
handle
in interface CallbackHandler
- Parameters:
callbacks
- an array of Callback
objects which
contain the information requested by an underlying security
service to be retrieved or displayed.
- Throws:
IOException
- if an input or output error occurs.
UnsupportedCallbackException
- if the implementation of this method
does not support one or more of the Callbacks specified in the
callbacks
parameter.
Copyright © 2010 OW2 Consortium. All Rights Reserved.