org.openmdx.security.auth.callback
Class AbstractCallbackHandler

java.lang.Object
  extended by org.openmdx.security.auth.callback.AbstractCallbackHandler
All Implemented Interfaces:
CallbackHandler
Direct Known Subclasses:
PasscodeCallbackHandler, TerminalCallbackHandler

public abstract class AbstractCallbackHandler
extends Object
implements CallbackHandler

Abstract Callback Handler


Constructor Summary
protected AbstractCallbackHandler()
          Constructor
 
Method Summary
protected  void handle(AddressCallback callback)
          Handle a given callback class
protected  void handle(Callback callback)
          Handle a single calllback
 void handle(Callback[] callbacks)
          Handle all callbacks
protected  void handle(ChoiceCallback callback)
          Handle a given callback class
protected  void handle(ConfirmationCallback callback)
          Handle a given callback class
protected  void handle(LanguageCallback callback)
          Handle a given callback class
protected  void handle(NameCallback callback)
          Handle a given callback class
protected  void handle(PasswordCallback callback)
          Handle a given callback class
protected  void handle(TextInputCallback callback)
          Handle a given callback class
protected  void handle(TextOutputCallback callback)
          Handle a given callback class
protected  void unsupported(Callback callback)
          Reject a given callback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCallbackHandler

protected AbstractCallbackHandler()
Constructor

Method Detail

handle

protected void handle(ChoiceCallback callback)
               throws IOException,
                      UnsupportedCallbackException
Handle a given callback class

Parameters:
callback - the callback object to be handled
Throws:
UnsupportedCallbackException - if the given callback class is not supported
IOException - if callback handling fails

handle

protected void handle(ConfirmationCallback callback)
               throws IOException,
                      UnsupportedCallbackException
Handle a given callback class

Parameters:
callback - the callback object to be handled
Throws:
UnsupportedCallbackException - if the given callback class is not supported
IOException - if callback handling fails

handle

protected void handle(LanguageCallback callback)
               throws IOException,
                      UnsupportedCallbackException
Handle a given callback class

Parameters:
callback - the callback object to be handled
Throws:
UnsupportedCallbackException - if the given callback class is not supported
IOException - if callback handling fails

handle

protected void handle(NameCallback callback)
               throws IOException,
                      UnsupportedCallbackException
Handle a given callback class

Parameters:
callback - the callback object to be handled
Throws:
UnsupportedCallbackException - if the given callback class is not supported
IOException - if callback handling fails

handle

protected void handle(PasswordCallback callback)
               throws IOException,
                      UnsupportedCallbackException
Handle a given callback class

Parameters:
callback - the callback object to be handled
Throws:
UnsupportedCallbackException - if the given callback class is not supported
IOException - if callback handling fails

handle

protected void handle(TextInputCallback callback)
               throws IOException,
                      UnsupportedCallbackException
Handle a given callback class

Parameters:
callback - the callback object to be handled
Throws:
UnsupportedCallbackException - if the given callback class is not supported
IOException - if callback handling fails

handle

protected void handle(TextOutputCallback callback)
               throws IOException,
                      UnsupportedCallbackException
Handle a given callback class

Parameters:
callback - the callback object to be handled
Throws:
UnsupportedCallbackException - if the given callback class is not supported
IOException - if callback handling fails

handle

protected void handle(AddressCallback callback)
               throws IOException,
                      UnsupportedCallbackException
Handle a given callback class

Parameters:
callback - the callback object to be handled
Throws:
UnsupportedCallbackException - if the given callback class is not supported
IOException - if callback handling fails

handle

protected void handle(Callback callback)
               throws IOException,
                      UnsupportedCallbackException
Handle a single calllback

This method may be overridden to support additional callback classes

Parameters:
callback - the callback to be handled
Throws:
IOException
UnsupportedCallbackException

handle

public void handle(Callback[] callbacks)
            throws IOException,
                   UnsupportedCallbackException
Handle all callbacks

Specified by:
handle in interface CallbackHandler
Parameters:
callbacks - the callbacks to be handled
Throws:
IOException
UnsupportedCallbackException

unsupported

protected void unsupported(Callback callback)
                    throws UnsupportedCallbackException
Reject a given callback

Parameters:
callback - unsupported callback
Throws:
UnsupportedCallbackException


This software is published under the BSD license. Copyright © 2003-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.