org.apache.geronimo.jmxremoting
Class AuthenticatorTest.MockModule

java.lang.Object
  extended byorg.apache.geronimo.jmxremoting.AuthenticatorTest.MockModule
All Implemented Interfaces:
javax.security.auth.spi.LoginModule
Enclosing class:
AuthenticatorTest

public static class AuthenticatorTest.MockModule
extends java.lang.Object
implements javax.security.auth.spi.LoginModule


Field Summary
private  javax.security.auth.callback.CallbackHandler handler
           
private  java.util.Map options
           
private  javax.security.auth.Subject subject
           
private  java.lang.String username
           
 
Constructor Summary
AuthenticatorTest.MockModule()
           
 
Method Summary
 boolean abort()
           
 boolean commit()
           
 void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map sharedState, java.util.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

private javax.security.auth.Subject subject

handler

private javax.security.auth.callback.CallbackHandler handler

options

private java.util.Map options

username

private java.lang.String username
Constructor Detail

AuthenticatorTest.MockModule

public AuthenticatorTest.MockModule()
Method Detail

initialize

public void initialize(javax.security.auth.Subject subject,
                       javax.security.auth.callback.CallbackHandler callbackHandler,
                       java.util.Map sharedState,
                       java.util.Map options)
Specified by:
initialize in interface javax.security.auth.spi.LoginModule

login

public boolean login()
              throws javax.security.auth.login.LoginException
Specified by:
login in interface javax.security.auth.spi.LoginModule
Throws:
javax.security.auth.login.LoginException

commit

public boolean commit()
               throws javax.security.auth.login.LoginException
Specified by:
commit in interface javax.security.auth.spi.LoginModule
Throws:
javax.security.auth.login.LoginException

logout

public boolean logout()
               throws javax.security.auth.login.LoginException
Specified by:
logout in interface javax.security.auth.spi.LoginModule
Throws:
javax.security.auth.login.LoginException

abort

public boolean abort()
              throws javax.security.auth.login.LoginException
Specified by:
abort in interface javax.security.auth.spi.LoginModule
Throws:
javax.security.auth.login.LoginException


Copyright © 2005 Apache Software Foundation. All Rights Reserved.