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 Principal
authenticate(String username, String password, XWikiContext context)
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
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
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.-
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 IOException
Show the login page.- Specified by:
showLogin
in 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:
showLogin
in interfaceorg.securityfilter.authenticator.Authenticator
- Overrides:
showLogin
in classorg.securityfilter.authenticator.FormAuthenticator
- Throws:
IOException
-
processLogin
public boolean processLogin(org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response) throws Exception
- Specified by:
processLogin
in interfaceorg.securityfilter.authenticator.Authenticator
- Overrides:
processLogin
in classorg.securityfilter.authenticator.FormAuthenticator
- Throws:
Exception
-
processLogin
public boolean processLogin(org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response, XWikiContext context) throws Exception
Process 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:
processLogin
in 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:
processLogin
in 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:
processLogout
in interfaceorg.securityfilter.authenticator.Authenticator
- Overrides:
processLogout
in classorg.securityfilter.authenticator.FormAuthenticator
- Throws:
Exception
-
-