Logs in a user based on a username, password, and static password file
location. This module must be used with a CallbackHandler (such as
WikiCallbackHandler ) that supports the following Callback types:
-
javax.security.auth.callback.NameCallback - supplies the
username
-
javax.security.auth.callback.PasswordCallback - supplies the
password
-
com.ecyrd.jspwiki.auth.login.UserDatabaseCallback - supplies the
com.ecyrd.jspwiki.auth.user.UserDatabase
After authentication, a Principals based on the login name will be created
and associated with the Subject.
Also, principals
com.ecyrd.jspwiki.auth.authorize.Role.ALL and
com.ecyrd.jspwiki.auth.authorize.Role.AUTHENTICATED will be added to
the Subject's principal set.
author: Andrew Jaquith since: 2.3 |