Package org.apache.wiki.auth.login
Class WikiCallbackHandler
java.lang.Object
org.apache.wiki.auth.login.WikiCallbackHandler
- All Implemented Interfaces:
CallbackHandler
public class WikiCallbackHandler extends Object implements 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.WikiSession,HttpServletRequest, String, String).
If container-managed authentication is used, the WebContainerCallbackHandleris used instead. This callback handler is
designed to be used with UserDatabaseLoginModule.- Since:
- 2.3
-
Constructor Summary
Constructors Constructor Description WikiCallbackHandler(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 forHttpRequestCallbackwill return an UnsupportedCallbackExceptionusername- the usernamepassword- the password
-
-
Method Details
-
handle
- Specified by:
handlein interfaceCallbackHandler- Throws:
IOExceptionUnsupportedCallbackException- See Also:
CallbackHandler.handle(javax.security.auth.callback.Callback[])
-