| java.lang.Object com.ecyrd.jspwiki.auth.login.AbstractLoginModule
All known Subclasses: com.ecyrd.jspwiki.auth.login.WebContainerLoginModule, com.ecyrd.jspwiki.auth.login.CookieAuthenticationLoginModule, com.ecyrd.jspwiki.auth.login.AnonymousLoginModule, com.ecyrd.jspwiki.auth.login.UserDatabaseLoginModule, com.ecyrd.jspwiki.auth.login.CookieAssertionLoginModule,
Method Summary | |
final public boolean | abort() Aborts the login; called if the LoginContext's overall authentication
failed. | final public boolean | commit() | final public void | initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) Initializes the LoginModule with a given Subject ,
callback handler, options and shared state. | abstract public boolean | login() Logs in the user by calling back to the registered CallbackHandler with a
series of callbacks. | final public boolean | logout() Logs the user out. |
m_previousWikiPrincipals | protected Collection m_previousWikiPrincipals(Code) | | Collection of Principals set during login module initialization.
These represent the user's identities prior to the overall login.
Typically these will contain earlier, less-authoritative principals
like a WikiPrincipal for the user cookie, or an IP address.
These Principals are forcibly removed during the commit phase
if login succeeds.
|
m_principals | protected Collection m_principals(Code) | | Implementing classes should add Principals to this collection; these
will be added to the principal set when the overall login succeeds.
These Principals will be added to the Subject
during the
AbstractLoginModule.commit() phase of login.
|
m_principalsToRemove | protected Collection m_principalsToRemove(Code) | | Implementing classes should add Principals to this collection
to specify what Principals must be removed if login for
this module, or for the entire login configuration overall, fails.
Generally, these will be Principals of type
com.ecyrd.jspwiki.auth.authorize.Role .
|
login | abstract public boolean login() throws LoginException(Code) | | Logs in the user by calling back to the registered CallbackHandler with a
series of callbacks. If the login succeeds, this method returns
true
true if the commit succeeded, orfalse if this LoginModule should be ignored. throws: LoginException - if the authentication fails See Also: javax.security.auth.spi.LoginModule.login |
|
|