public class WikiCallbackHandler extends Object implements CallbackHandler
AuthenticationManager.login(org.apache.wiki.WikiSession,HttpServletRequest, String, String)
.
If container-managed authentication is used, the
WebContainerCallbackHandler
is used instead. This callback handler is
designed to be used with UserDatabaseLoginModule
.Constructor and Description |
---|
WikiCallbackHandler(WikiEngine engine,
javax.servlet.http.HttpServletRequest request,
String username,
String password)
Create a new callback handler.
|
public WikiCallbackHandler(WikiEngine engine, javax.servlet.http.HttpServletRequest request, String username, String password)
engine
- the WikiEnginerequest
- the user's HTTP request. If passed as null
,
later requests for HttpRequestCallback
will return an UnsupportedCallbackExceptionusername
- the usernamepassword
- the passwordpublic void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle
in interface CallbackHandler
IOException
UnsupportedCallbackException
{@inheritDoc}
Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.