org.objectweb.jonas.security.auth.callback
Class LoginCallbackHandler

java.lang.Object
  extended by org.objectweb.jonas.security.auth.callback.LoginCallbackHandler
All Implemented Interfaces:
javax.security.auth.callback.CallbackHandler

public class LoginCallbackHandler
extends java.lang.Object
implements javax.security.auth.callback.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

Constructor Summary
LoginCallbackHandler()
           
 
Method Summary
 void handle(javax.security.auth.callback.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
 

Constructor Detail

LoginCallbackHandler

public LoginCallbackHandler()
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 interface javax.security.auth.callback.CallbackHandler
Parameters:
callbacks - an array of Callback 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 the callbacks parameter.