Package com.xpn.xwiki.user.api
Interface XWikiAuthService
-
- All Known Implementing Classes:
AbstractXWikiAuthService,AppServerTrustedAuthServiceImpl,AppServerTrustedKerberosAuthServiceImpl,GroovyAuthServiceImpl,XWikiAuthServiceImpl
public interface XWikiAuthService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Principalauthenticate(String username, String password, XWikiContext context)XWikiUsercheckAuth(XWikiContext context)XWikiUsercheckAuth(String username, String password, String rememberme, XWikiContext context)Authenticates the user.voidshowLogin(XWikiContext context)
-
-
-
Method Detail
-
checkAuth
XWikiUser checkAuth(XWikiContext context) throws XWikiException
- Throws:
XWikiException
-
checkAuth
XWikiUser checkAuth(String username, String password, String rememberme, XWikiContext context) throws XWikiException
Authenticates the user.- Parameters:
username- the user name for the user to authenticatepassword- the password of the user to authenticatecontext- the XWiki context object- Returns:
- null if the user is not authenticated properly or a
XWikiUserobject representing the authenticated user if successful - Throws:
XWikiException- in case of authentication error
-
showLogin
void showLogin(XWikiContext context) throws XWikiException
- Throws:
XWikiException
-
authenticate
Principal authenticate(String username, String password, XWikiContext context) throws XWikiException
- Returns:
- a null Principal Object if the user hasn't been authenticated or a valid Principal Object if the user is correctly authenticated
- Throws:
XWikiException
-
-