com.xpn.xwiki.user.impl.xwiki
Class GroovyAuthServiceImpl
java.lang.Object
com.xpn.xwiki.user.impl.xwiki.AbstractXWikiAuthService
com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl
com.xpn.xwiki.user.impl.xwiki.GroovyAuthServiceImpl
- All Implemented Interfaces:
- XWikiAuthService
public class GroovyAuthServiceImpl
- extends XWikiAuthServiceImpl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroovyAuthServiceImpl
public GroovyAuthServiceImpl()
getParam
protected String getParam(String name,
XWikiContext context)
- Overrides:
getParam
in class XWikiAuthServiceImpl
getAuthService
public XWikiAuthService getAuthService(XWikiContext context)
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(String username,
String password,
String rememberme,
XWikiContext context)
throws XWikiException
- Description copied from class:
XWikiAuthServiceImpl
- Method to authenticate and set the cookie from a username and password passed as parameters
- 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
showLogin
public void showLogin(XWikiContext context)
throws XWikiException
- Specified by:
showLogin
in interface XWikiAuthService
- Overrides:
showLogin
in class XWikiAuthServiceImpl
- Throws:
XWikiException
authenticate
public Principal authenticate(String username,
String password,
XWikiContext context)
throws XWikiException
- Specified by:
authenticate
in interface XWikiAuthService
- Overrides:
authenticate
in class XWikiAuthServiceImpl
- 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–2014 XWiki. All rights reserved.