Package 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
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl
authenticators
-
-
Constructor Summary
Constructors Constructor Description GroovyAuthServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete 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)Method to authenticate and set the cookie from a username and password passed as parametersXWikiAuthServicegetAuthService(XWikiContext context)protected StringgetParam(String name, XWikiContext context)voidshowLogin(XWikiContext context)-
Methods inherited from class com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl
checkPassword, createUser, findUser, getAuthenticator, stripContextPathFromURL
-
Methods inherited from class com.xpn.xwiki.user.impl.xwiki.AbstractXWikiAuthService
authenticateSuperAdmin, isSuperAdmin
-
-
-
-
Method Detail
-
getParam
protected String getParam(String name, XWikiContext context)
- Overrides:
getParamin classXWikiAuthServiceImpl
-
getAuthService
public XWikiAuthService getAuthService(XWikiContext context)
-
checkAuth
public XWikiUser checkAuth(XWikiContext context) throws XWikiException
- Specified by:
checkAuthin interfaceXWikiAuthService- Overrides:
checkAuthin classXWikiAuthServiceImpl- Throws:
XWikiException
-
checkAuth
public XWikiUser checkAuth(String username, String password, String rememberme, XWikiContext context) throws XWikiException
Description copied from class:XWikiAuthServiceImplMethod to authenticate and set the cookie from a username and password passed as parameters- Specified by:
checkAuthin interfaceXWikiAuthService- Overrides:
checkAuthin classXWikiAuthServiceImpl- 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:
showLoginin interfaceXWikiAuthService- Overrides:
showLoginin classXWikiAuthServiceImpl- Throws:
XWikiException
-
authenticate
public Principal authenticate(String username, String password, XWikiContext context) throws XWikiException
- Specified by:
authenticatein interfaceXWikiAuthService- Overrides:
authenticatein classXWikiAuthServiceImpl- 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
-
-