net.sf.jguard.ext.authentication.loginmodules
Class JNDILoginModule
java.lang.Object
net.sf.jguard.ext.authentication.loginmodules.UserLoginModule
net.sf.jguard.ext.authentication.loginmodules.JNDILoginModule
- All Implemented Interfaces:
- javax.security.auth.spi.LoginModule
public class JNDILoginModule
- extends UserLoginModule
- implements javax.security.auth.spi.LoginModule
JNDI - related LoginModule.
- Author:
- Charles Gay
- See Also:
LoginModule
| Fields inherited from class net.sf.jguard.ext.authentication.loginmodules.UserLoginModule |
authenticationSchemeHandlerName, callbackHandler, debug, globalPrincipals, globalPrivateCredentials, globalPublicCredentials, login, LOGIN_ERROR, loginOK, options, password, sharedState, skipPasswordCheck, subject, USER_INACTIVE |
|
Method Summary |
boolean |
commit()
add Principals and Public/Private credentials to Subject. |
void |
initialize(javax.security.auth.Subject subj,
javax.security.auth.callback.CallbackHandler cbkHandler,
java.util.Map sState,
java.util.Map opts)
|
boolean |
login()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.security.auth.spi.LoginModule |
abort, logout |
JNDILoginModule
public JNDILoginModule()
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- Overrides:
initialize in class UserLoginModule
- 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- Overrides:
login in class UserLoginModule
- Returns:
- true if success, false if ignored.
- Throws:
javax.security.auth.login.LoginException - when it fails
commit
public boolean commit()
throws javax.security.auth.login.LoginException
- Description copied from class:
UserLoginModule
- add Principals and Public/Private credentials to Subject.
- Specified by:
commit in interface javax.security.auth.spi.LoginModule- Overrides:
commit in class UserLoginModule
- Returns:
- true if success, false if ignored,
LoginException when it fails.
- Throws:
javax.security.auth.login.LoginException- See Also:
LoginModule.commit()
Copyright © 2004-2009. All Rights Reserved.