Package org.apache.wiki.auth.login
Class WikiCallbackHandler
java.lang.Object
org.apache.wiki.auth.login.WikiCallbackHandler
- All Implemented Interfaces:
CallbackHandler
Handles logins made from inside the wiki application, rather than via the web container. This handler is instantiated in
AuthenticationManager.login(org.apache.wiki.api.core.Session,HttpServletRequest, String, String)
.
If container-managed authentication is used, the WebContainerCallbackHandler
is used instead. This callback handler is
designed to be used with UserDatabaseLoginModule
.- Since:
- 2.3
-
Constructor Summary
ConstructorDescriptionWikiCallbackHandler
(Engine engine, javax.servlet.http.HttpServletRequest request, String username, String password) Create a new callback handler. -
Method Summary
-
Constructor Details
-
WikiCallbackHandler
public WikiCallbackHandler(Engine engine, javax.servlet.http.HttpServletRequest request, String username, String password) Create a new callback handler.- Parameters:
engine
- the Enginerequest
- the user's HTTP request. If passed asnull
, later requests forHttpRequestCallback
will return an UnsupportedCallbackExceptionusername
- the usernamepassword
- the password
-
-
Method Details
-
handle
- Specified by:
handle
in interfaceCallbackHandler
- Throws:
IOException
UnsupportedCallbackException
- See Also:
-