no.feide.mellon.jaas.callbackhandlers
Class CommandlineCallbackHandler

java.lang.Object
  extended by no.feide.mellon.jaas.callbackhandlers.CommandlineCallbackHandler
All Implemented Interfaces:
javax.security.auth.callback.CallbackHandler

public class CommandlineCallbackHandler
extends java.lang.Object
implements javax.security.auth.callback.CallbackHandler

ConsoleCallbackHandler prompts and reads from the command line for username and password.

Author:
Rikke Amilde Løvlid

Constructor Summary
CommandlineCallbackHandler()
           
 
Method Summary
 void handle(javax.security.auth.callback.Callback[] callbacks)
          Handles the specified set of callbacks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandlineCallbackHandler

public CommandlineCallbackHandler()
Method Detail

handle

public void handle(javax.security.auth.callback.Callback[] callbacks)
            throws java.io.IOException,
                   javax.security.auth.callback.UnsupportedCallbackException
Handles the specified set of callbacks. This class supports NameCallback and PasswordCallback.

Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
Parameters:
callbacks - the callbacks to handle
Throws:
java.io.IOException - if an input or output error occurs.
javax.security.auth.callback.UnsupportedCallbackException - if the callback is not an instance of NameCallback or PasswordCallback


Copyright © 2001-2006 UNINETT FAS. All Rights Reserved.