net.sf.jguard.loginmodules
Class JNDILoginModule

java.lang.Object
  extended by net.sf.jguard.loginmodules.JNDILoginModule
All Implemented Interfaces:
javax.security.auth.spi.LoginModule

public class JNDILoginModule
extends java.lang.Object
implements javax.security.auth.spi.LoginModule

JNDI - related LoginModule.

Author:
Charles Gay

Constructor Summary
JNDILoginModule()
           
 
Method Summary
 boolean abort()
           
 boolean commit()
           
 void initialize(javax.security.auth.Subject subj, javax.security.auth.callback.CallbackHandler cbkHandler, java.util.Map sState, java.util.Map opts)
           
 boolean login()
           
 boolean logout()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNDILoginModule

public JNDILoginModule()
Method Detail

initialize

public void initialize(javax.security.auth.Subject subj,
                       javax.security.auth.callback.CallbackHandler cbkHandler,
                       java.util.Map sState,
                       java.util.Map opts)
Specified by:
initialize in interface javax.security.auth.spi.LoginModule
Parameters:
subj -
cbkHandler -
sState -
opts -

login

public boolean login()
              throws javax.security.auth.login.LoginException
Specified by:
login in interface javax.security.auth.spi.LoginModule
Returns:
true if success, false if ignored, LoginException when it fails
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
Returns:
true if success, false if ignored, LoginException when it fails
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
Returns:
true if success, false if ignored, LoginException when it fails
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
Returns:
true if success, false if ignored, LoginException when it fails
Throws:
javax.security.auth.login.LoginException