org.openmdx.test.security.auth
Class FakeLoginModule

java.lang.Object
  extended by org.openmdx.test.security.auth.FakeLoginModule
All Implemented Interfaces:
LoginModule

public class FakeLoginModule
extends Object
implements LoginModule


Field Summary
protected  CallbackHandler callbackHandler
           
protected  Map options
           
static String PRINCIPAL_TYPE
          A generic principal
protected  Map sharedState
           
protected  Subject subject
           
 
Constructor Summary
FakeLoginModule()
          Constructor
 
Method Summary
 boolean abort()
           
 boolean commit()
           
 void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
           
 boolean login()
           
 boolean logout()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subject

protected Subject subject

callbackHandler

protected CallbackHandler callbackHandler

sharedState

protected Map sharedState

options

protected Map options

PRINCIPAL_TYPE

public static final String PRINCIPAL_TYPE
A generic principal

See Also:
Constant Field Values
Constructor Detail

FakeLoginModule

public FakeLoginModule()
Constructor

Method Detail

abort

public boolean abort()
              throws LoginException
Specified by:
abort in interface LoginModule
Throws:
LoginException

commit

public boolean commit()
               throws LoginException
Specified by:
commit in interface LoginModule
Throws:
LoginException

login

public boolean login()
              throws LoginException
Specified by:
login in interface LoginModule
Throws:
LoginException

logout

public boolean logout()
               throws LoginException
Specified by:
logout in interface LoginModule
Throws:
LoginException

initialize

public void initialize(Subject subject,
                       CallbackHandler callbackHandler,
                       Map sharedState,
                       Map options)
Specified by:
initialize in interface LoginModule


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