|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.kernel.security.AdminLoginModule
Supports login as an aribtrary user by checking whether a user ID has
been set for the Subject. If so, login succeeds, so
commit is called on all login modules to log the user in.
If no user ID is set, login fails. This module should
appear at the beginning of a login context with the "sufficient" control
flag. Note that this module does not check the privileges of the current
user; this must be done by the code that runs the login context.
UserContext.login(com.arsdigita.kernel.User)| Field Summary | |
static String |
versionId
|
| Constructor Summary | |
AdminLoginModule()
|
|
| Method Summary | |
boolean |
abort()
Trivial implementation; does nothing. |
boolean |
commit()
Trivial implementation; does nothing. |
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler handler,
Map shared,
Map options)
|
boolean |
login()
Checks whether a user ID has been assigned to the Subject. |
boolean |
logout()
Trivial implementation; does nothing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String versionId
| Constructor Detail |
public AdminLoginModule()
| Method Detail |
public void initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler handler,
Map shared,
Map options)
initialize in interface javax.security.auth.spi.LoginModule
public boolean login()
throws javax.security.auth.login.LoginException
login in interface javax.security.auth.spi.LoginModuletrue.
javax.security.auth.login.FailedLoginException - if no user ID has been assigned.
javax.security.auth.login.LoginException
public boolean commit()
throws javax.security.auth.login.LoginException
commit in interface javax.security.auth.spi.LoginModuletrue.
javax.security.auth.login.LoginException
public boolean abort()
throws javax.security.auth.login.LoginException
abort in interface javax.security.auth.spi.LoginModuletrue.
javax.security.auth.login.LoginException
public boolean logout()
throws javax.security.auth.login.LoginException
logout in interface javax.security.auth.spi.LoginModuletrue.
javax.security.auth.login.LoginException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||