net.larsan.urd.service.user.jaas
Class UrdLoginModule
java.lang.Object
|
+--net.larsan.urd.service.user.jaas.UrdLoginModule
- All Implemented Interfaces:
- javax.security.auth.spi.LoginModule
- public class UrdLoginModule
- extends java.lang.Object
- implements javax.security.auth.spi.LoginModule
This login module acts on the Urd user file. It has two optional 'option'
when configured:
file - the Urd user file
debug - print debug info
If the file option is not available this module will look for the
default file, which is the 'conf/users.xml' in the Urd man directory.
A file can be specified absolute or relative, in which case it is resolved
from the Urd directory.
If debug is set to 'true' debug information will be printed to the
standard out.
- Version:
- Alpha-0.1 / 2002-10-06 21:37
- Author:
- Lars J. Nilsson
|
Method Summary |
boolean |
abort()
|
boolean |
commit()
|
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callback,
java.util.Map state,
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 |
UrdLoginModule
public UrdLoginModule()
initialize
public void initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callback,
java.util.Map state,
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
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
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
javax.security.auth.login.LoginException
logout
public boolean logout()
- Specified by:
logout in interface javax.security.auth.spi.LoginModule