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, init
public void showLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, XWikiContext context) throws IOException
showLogin
in interface XWikiAuthenticator
request
- the current requestresponse
- the current responseIOException
public void showLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
showLogin
in interface org.securityfilter.authenticator.Authenticator
showLogin
in class org.securityfilter.authenticator.FormAuthenticator
IOException
public boolean processLogin(org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response) throws Exception
processLogin
in interface org.securityfilter.authenticator.Authenticator
processLogin
in class org.securityfilter.authenticator.FormAuthenticator
Exception
public boolean processLogin(org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response, XWikiContext context) throws Exception
processLogin
in interface XWikiAuthenticator
request
- response
- Exception
public 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 XWikiAuthenticator
request
- response
- Exception
public static Principal authenticate(String username, String password, XWikiContext context) throws XWikiException
XWikiException
public 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.Authenticator
processLogout
in class org.securityfilter.authenticator.FormAuthenticator
Exception
Copyright © 2004–2021 XWiki. All rights reserved.