com.xpn.xwiki.user.impl.xwiki
Class AppServerTrustedAuthServiceImpl
java.lang.Object
com.xpn.xwiki.user.impl.xwiki.AbstractXWikiAuthService
com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl
com.xpn.xwiki.user.impl.xwiki.AppServerTrustedAuthServiceImpl
- All Implemented Interfaces:
- XWikiAuthService
public class AppServerTrustedAuthServiceImpl
- extends XWikiAuthServiceImpl
Implements a authentication mecanism which is trusting the App Server authentication. If it fails it falls back to
the standard XWiki authentication.
- Version:
- $Id: AppServerTrustedAuthServiceImpl.java 13084 2008-09-29 16:04:06Z tmortagne $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AppServerTrustedAuthServiceImpl
public AppServerTrustedAuthServiceImpl()
checkAuth
public XWikiUser checkAuth(XWikiContext context)
throws XWikiException
- Specified by:
checkAuth in interface XWikiAuthService- Overrides:
checkAuth in class XWikiAuthServiceImpl
- Throws:
XWikiException
checkAuth
public XWikiUser checkAuth(java.lang.String username,
java.lang.String password,
java.lang.String rememberme,
XWikiContext context)
throws XWikiException
- We cannot authenticate locally since we need to trust the app server for authentication.
- Specified by:
checkAuth in interface XWikiAuthService- Overrides:
checkAuth in class XWikiAuthServiceImpl
- 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
- Throws:
XWikiException - in case of authentication error
Copyright © 2004-2008 XWiki. All Rights Reserved.