public class MyBasicAuthenticator extends org.securityfilter.authenticator.BasicAuthenticator implements XWikiAuthenticator
| Constructor and Description |
|---|
MyBasicAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
static Principal |
authenticate(String username,
String password,
XWikiContext context) |
static Principal |
checkLogin(org.securityfilter.filter.SecurityRequestWrapper request,
javax.servlet.http.HttpServletResponse response,
XWikiContext context) |
static String |
decodeBasicAuthorizationString(String authorization)
Decode the BASIC authorization string.
|
static String |
parsePassword(String decoded)
Parse the password out of the decoded BASIC authorization header string.
|
static String |
parseUsername(String decoded)
Parse the user name out of the BASIC authorization header string.
|
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) |
boolean |
processLogin(String username,
String password,
String rememberme,
org.securityfilter.filter.SecurityRequestWrapper request,
javax.servlet.http.HttpServletResponse response,
XWikiContext context) |
static void |
showLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String realmName) |
void |
showLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
XWikiContext context) |
bypassSecurityForThisRequest, getAuthMethod, init, processLogout, showLoginpublic 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.BasicAuthenticatorExceptionpublic boolean processLogin(org.securityfilter.filter.SecurityRequestWrapper request,
javax.servlet.http.HttpServletResponse response,
XWikiContext context)
throws Exception
processLogin in interface XWikiAuthenticatorExceptionpublic 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 XWikiAuthenticatorExceptionpublic static Principal checkLogin(org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response, XWikiContext context) throws Exception
Exceptionpublic static String parseUsername(String decoded)
decoded - public static String parsePassword(String decoded)
decoded - public static String decodeBasicAuthorizationString(String authorization)
authorization - public static Principal authenticate(String username, String password, XWikiContext context) throws XWikiException
XWikiExceptionpublic static void showLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String realmName)
throws IOException
IOExceptionpublic void showLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
XWikiContext context)
throws IOException
showLogin in interface XWikiAuthenticatorIOExceptionCopyright © 2004–2022 XWiki. All rights reserved.