public class MyFormAuthenticator extends org.securityfilter.authenticator.FormAuthenticator implements XWikiAuthenticator
DEFAULT_LOGIN_SUBMIT_PATTERN, defaultPage, errorPage, errorPagePattern, FORM_PASSWORD, FORM_REMEMBERME, FORM_USERNAME, LOGIN_SUBMIT_PATTERN_KEY, loginPage, loginPagePattern, loginSubmitPattern, logoutPagePattern, persistentLoginManager, realm| Constructor and Description |
|---|
MyFormAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
static Principal |
authenticate(String username,
String password,
XWikiContext context) |
boolean |
processLogin(org.securityfilter.filter.SecurityRequestWrapper request,
javax.servlet.http.HttpServletResponse response) |
boolean |
processLogin(org.securityfilter.filter.SecurityRequestWrapper request,
javax.servlet.http.HttpServletResponse response,
XWikiContext context)
Process any login information that was included in the request, if any.
|
boolean |
processLogin(String username,
String password,
String rememberme,
org.securityfilter.filter.SecurityRequestWrapper request,
javax.servlet.http.HttpServletResponse response,
XWikiContext context)
Process any login information passed in parameter (username, password).
|
boolean |
processLogout(org.securityfilter.filter.SecurityRequestWrapper securityRequestWrapper,
javax.servlet.http.HttpServletResponse httpServletResponse,
org.securityfilter.filter.URLPatternMatcher urlPatternMatcher) |
void |
showLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
showLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
XWikiContext context)
Show the login page.
|
bypassSecurityForThisRequest, getAuthMethod, initpublic void showLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
XWikiContext context)
throws IOException
showLogin in interface XWikiAuthenticatorrequest - the current requestresponse - the current responseIOExceptionpublic void showLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
showLogin in interface org.securityfilter.authenticator.AuthenticatorshowLogin in class org.securityfilter.authenticator.FormAuthenticatorIOExceptionpublic boolean processLogin(org.securityfilter.filter.SecurityRequestWrapper request,
javax.servlet.http.HttpServletResponse response)
throws Exception
processLogin in interface org.securityfilter.authenticator.AuthenticatorprocessLogin in class org.securityfilter.authenticator.FormAuthenticatorExceptionpublic boolean processLogin(org.securityfilter.filter.SecurityRequestWrapper request,
javax.servlet.http.HttpServletResponse response,
XWikiContext context)
throws Exception
processLogin in interface XWikiAuthenticatorrequest - response - Exceptionpublic boolean processLogin(String username, String password, String rememberme, org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response, XWikiContext context) throws Exception
processLogin in interface XWikiAuthenticatorrequest - response - Exceptionpublic static Principal authenticate(String username, String password, XWikiContext context) throws XWikiException
XWikiExceptionpublic boolean processLogout(org.securityfilter.filter.SecurityRequestWrapper securityRequestWrapper,
javax.servlet.http.HttpServletResponse httpServletResponse,
org.securityfilter.filter.URLPatternMatcher urlPatternMatcher)
throws Exception
processLogout in interface org.securityfilter.authenticator.AuthenticatorprocessLogout in class org.securityfilter.authenticator.FormAuthenticatorExceptionCopyright © 2004–2021 XWiki. All rights reserved.