Package com.xpn.xwiki.user.impl.xwiki
Class MyFormAuthenticator
- java.lang.Object
-
- org.securityfilter.authenticator.FormAuthenticator
-
- com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator
-
- All Implemented Interfaces:
XWikiAuthenticator,org.securityfilter.authenticator.Authenticator
public class MyFormAuthenticator extends org.securityfilter.authenticator.FormAuthenticator implements XWikiAuthenticator
-
-
Field Summary
-
Fields inherited from class org.securityfilter.authenticator.FormAuthenticator
DEFAULT_LOGIN_SUBMIT_PATTERN, defaultPage, errorPage, errorPagePattern, FORM_PASSWORD, FORM_REMEMBERME, FORM_USERNAME, LOGIN_SUBMIT_PATTERN_KEY, loginPage, loginPagePattern, loginSubmitPattern, logoutPagePattern, persistentLoginManager, realm
-
-
Constructor Summary
Constructors Constructor Description MyFormAuthenticator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Principalauthenticate(String username, String password, XWikiContext context)booleanprocessLogin(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).booleanprocessLogin(org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response)booleanprocessLogin(org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response, XWikiContext context)Process any login information that was included in the request, if any.booleanprocessLogout(org.securityfilter.filter.SecurityRequestWrapper securityRequestWrapper, javax.servlet.http.HttpServletResponse httpServletResponse, org.securityfilter.filter.URLPatternMatcher urlPatternMatcher)voidshowLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)voidshowLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, XWikiContext context)Show the login page.-
Methods inherited from class org.securityfilter.authenticator.FormAuthenticator
bypassSecurityForThisRequest, getAuthMethod, init
-
-
-
-
Method Detail
-
showLogin
public void showLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, XWikiContext context) throws IOExceptionShow the login page.- Specified by:
showLoginin interfaceXWikiAuthenticator- Parameters:
request- the current requestresponse- the current response- Throws:
IOException
-
showLogin
public void showLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException- Specified by:
showLoginin interfaceorg.securityfilter.authenticator.Authenticator- Overrides:
showLoginin classorg.securityfilter.authenticator.FormAuthenticator- Throws:
IOException
-
processLogin
public boolean processLogin(org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response) throws Exception- Specified by:
processLoginin interfaceorg.securityfilter.authenticator.Authenticator- Overrides:
processLoginin classorg.securityfilter.authenticator.FormAuthenticator- Throws:
Exception
-
processLogin
public boolean processLogin(org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response, XWikiContext context) throws ExceptionProcess any login information that was included in the request, if any. Returns true if SecurityFilter should abort further processing after the method completes (for example, if a redirect was sent as part of the login processing).- Specified by:
processLoginin interfaceXWikiAuthenticator- Parameters:
request-response-- Returns:
- true if the filter should return after this method ends, false otherwise
- Throws:
Exception
-
processLogin
public boolean processLogin(String username, String password, String rememberme, org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response, XWikiContext context) throws Exception
Process any login information passed in parameter (username, password). Returns true if SecurityFilter should abort further processing after the method completes (for example, if a redirect was sent as part of the login processing).- Specified by:
processLoginin interfaceXWikiAuthenticator- Parameters:
request-response-- Returns:
- true if the filter should return after this method ends, false otherwise
- Throws:
Exception
-
authenticate
public static Principal authenticate(String username, String password, XWikiContext context) throws XWikiException
- Throws:
XWikiException
-
processLogout
public boolean processLogout(org.securityfilter.filter.SecurityRequestWrapper securityRequestWrapper, javax.servlet.http.HttpServletResponse httpServletResponse, org.securityfilter.filter.URLPatternMatcher urlPatternMatcher) throws Exception- Specified by:
processLogoutin interfaceorg.securityfilter.authenticator.Authenticator- Overrides:
processLogoutin classorg.securityfilter.authenticator.FormAuthenticator- Throws:
Exception
-
-