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, showLogin
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.BasicAuthenticator
Exception
public boolean processLogin(org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response, XWikiContext context) throws Exception
processLogin
in interface XWikiAuthenticator
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
Exception
public static Principal checkLogin(org.securityfilter.filter.SecurityRequestWrapper request, javax.servlet.http.HttpServletResponse response, XWikiContext context) throws Exception
Exception
public 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
XWikiException
public static void showLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String realmName) throws IOException
IOException
public void showLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, XWikiContext context) throws IOException
showLogin
in interface XWikiAuthenticator
IOException
Copyright © 2004–2021 XWiki. All rights reserved.