org.openmdx.test.security.auth.client.spi
Class TestCallbackHandler

java.lang.Object
  extended by org.openmdx.security.auth.client.spi.AbstractLoginClient
      extended by org.openmdx.test.security.auth.client.spi.TestCallbackHandler
All Implemented Interfaces:
Runnable

public class TestCallbackHandler
extends AbstractLoginClient

Test Callback Handler


Field Summary
 
Fields inherited from class org.openmdx.security.auth.client.spi.AbstractLoginClient
CANCELLED, FAILED, SUCCESS
 
Constructor Summary
TestCallbackHandler()
           
 
Method Summary
protected  CallbackHandler getCallbackHandler()
          Retrieve the callback handler
protected  Configuration getLoginConfiguration()
          Create a new login configuration
protected  void handle(LoginException exception)
          Log the exception
static void main(String... arguments)
          Main
protected  void run(Subject subject)
          This method is executed while the user is logged in.
 
Methods inherited from class org.openmdx.security.auth.client.spi.AbstractLoginClient
abort, getLoginContext, getLoginLimit, getName, getSingleton, login, newCallbackHandler, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCallbackHandler

public TestCallbackHandler()
Method Detail

main

public static void main(String... arguments)
Main

Parameters:
arguments -

getCallbackHandler

protected CallbackHandler getCallbackHandler()
Description copied from class: AbstractLoginClient
Retrieve the callback handler

Specified by:
getCallbackHandler in class AbstractLoginClient
Returns:
the callback handler to be used to log-in

getLoginConfiguration

protected Configuration getLoginConfiguration()
Description copied from class: AbstractLoginClient
Create a new login configuration

Overrides:
getLoginConfiguration in class AbstractLoginClient
Returns:
the configuration to be used to log-in

run

protected void run(Subject subject)
Description copied from class: AbstractLoginClient
This method is executed while the user is logged in.

Specified by:
run in class AbstractLoginClient
Parameters:
subject - the authenticated subject

handle

protected void handle(LoginException exception)
Description copied from class: AbstractLoginClient
Log the exception

Overrides:
handle in class AbstractLoginClient


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