public interface XWikiAuthService
Modifier and Type | Method and Description |
---|---|
Principal |
authenticate(String username,
String password,
XWikiContext context) |
XWikiUser |
checkAuth(String username,
String password,
String rememberme,
XWikiContext context)
Authenticates the user.
|
XWikiUser |
checkAuth(XWikiContext context) |
void |
showLogin(XWikiContext context) |
XWikiUser checkAuth(XWikiContext context) throws XWikiException
XWikiException
XWikiUser checkAuth(String username, String password, String rememberme, XWikiContext context) throws XWikiException
username
- the user name for the user to authenticatepassword
- the password of the user to authenticatecontext
- the XWiki context objectXWikiUser
object representing the
authenticated user if successfulXWikiException
- in case of authentication errorvoid showLogin(XWikiContext context) throws XWikiException
XWikiException
Principal authenticate(String username, String password, XWikiContext context) throws XWikiException
XWikiException
Copyright © 2004–2021 XWiki. All rights reserved.