com.xpn.xwiki.user.api
Interface XWikiAuthService
- All Known Implementing Classes:
- AbstractXWikiAuthService, AppServerTrustedAuthServiceImpl, ExoAuthServiceImpl, GroovyAuthServiceImpl, LDAPAuthServiceImpl, XWikiAuthServiceImpl, XWikiLDAPAuthServiceImpl
public interface XWikiAuthService
checkAuth
XWikiUser checkAuth(XWikiContext context)
throws XWikiException
- Throws:
XWikiException
checkAuth
XWikiUser checkAuth(java.lang.String username,
java.lang.String password,
java.lang.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
XWikiUser object
representing the authenticated user if successful
- Throws:
XWikiException - in case of authentication error
showLogin
void showLogin(XWikiContext context)
throws XWikiException
- Throws:
XWikiException
authenticate
java.security.Principal authenticate(java.lang.String username,
java.lang.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
Copyright © 2004-2010 XWiki. All Rights Reserved.