public class MultiLuteceAuthentication extends Object implements fr.paris.lutece.portal.service.security.LuteceAuthentication
MyLuteceAuthentication. Call registerAuthentication(LuteceAuthentication) to register your authentication and removeAuthentication(String) to unregister
it.| Constructor and Description |
|---|
MultiLuteceAuthentication() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
findResetPassword(javax.servlet.http.HttpServletRequest request,
String strLogin) |
String |
getAccessControledTemplate()
Returns the access controled template
|
String |
getAccessDeniedTemplate()
Returns the access denied template
|
fr.paris.lutece.portal.service.security.LuteceUser |
getAnonymousUser() |
String |
getAuthServiceName() |
String |
getAuthType(javax.servlet.http.HttpServletRequest request) |
String |
getDoLoginUrl()
Returns the DoLogin URL of the Authentication Service.
|
String |
getDoLogoutUrl()
Returns the disconnect URL of the Authentication Service.
|
fr.paris.lutece.portal.service.security.LuteceUser |
getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request)
Finds the http authenticated user.
|
String |
getIconUrl()
No icon directlty shown for this authentication.
|
List<fr.paris.lutece.portal.service.security.LuteceAuthentication> |
getListLuteceAuthentication()
Returns all known security authentication services
|
String |
getLoginPageUrl()
Returns the Login page URL of the Authentication Service.
|
String |
getLostLoginPageUrl()
Returns the lost login URL of the Authentication Service.
|
String |
getLostPasswordPageUrl()
Returns the lost password URL of the Authentication Service.
|
fr.paris.lutece.portal.service.security.LuteceAuthentication |
getLuteceAuthentication(String strKey)
Gets the authentication by its key
|
String |
getName()
Always
null, not supposed to be identifiable |
String |
getNewAccountPageUrl()
Returns the new account page URL of the Authentication Service
Tries to get authentication specific new account page url form request (passed through LocalVariables ), default otherswise. |
String |
getPluginName()
Always
null, this implementation is not plugin related. |
String |
getResetPasswordPageUrl(javax.servlet.http.HttpServletRequest request) |
String[] |
getRolesByUser(fr.paris.lutece.portal.service.security.LuteceUser user) |
fr.paris.lutece.portal.service.security.LuteceUser |
getUser(String strUserLogin)
Tries to get user from any authentication.
|
Collection<fr.paris.lutece.portal.service.security.LuteceUser> |
getUsers()
Gets all known users from all authentications.
|
String |
getViewAccountPageUrl()
Returns the View account page URL of the Authentication Service
Tries to get authentication specific view account page url form request (passed through LocalVariables ), default otherswise. |
boolean |
isDelegatedAuthentication() |
boolean |
isExternalAuthentication() |
boolean |
isMultiAuthenticationSupported() |
boolean |
isUserInRole(fr.paris.lutece.portal.service.security.LuteceUser user,
javax.servlet.http.HttpServletRequest request,
String strRole) |
boolean |
isUsersListAvailable()
Returns false.
|
fr.paris.lutece.portal.service.security.LuteceUser |
login(String strUserName,
String strUserPassword,
javax.servlet.http.HttpServletRequest request) |
void |
logout(fr.paris.lutece.portal.service.security.LuteceUser user) |
static void |
registerAuthentication(fr.paris.lutece.portal.service.security.LuteceAuthentication authentication)
Registers an authentication.
|
static void |
removeAuthentication(String strAuthenticationName)
Removes the authentication from managed authentication
|
void |
updateDateLastLogin(fr.paris.lutece.portal.service.security.LuteceUser user,
javax.servlet.http.HttpServletRequest request) |
public static void registerAuthentication(fr.paris.lutece.portal.service.security.LuteceAuthentication authentication)
authentication - the authentication to register.public static void removeAuthentication(String strAuthenticationName)
strAuthenticationName - the authentication keypublic String getLoginPageUrl()
LocalVariables ), default otherswise.getLoginPageUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic String getDoLoginUrl()
LocalVariables ), default otherswise.getDoLoginUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic String getNewAccountPageUrl()
LocalVariables ), default otherswise.getNewAccountPageUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic String getViewAccountPageUrl()
LocalVariables ), default otherswise.getViewAccountPageUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic String getLostPasswordPageUrl()
LocalVariables ), default otherswise.getLostPasswordPageUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic String getLostLoginPageUrl()
LocalVariables ), default otherwise.getLostLoginPageUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic boolean findResetPassword(javax.servlet.http.HttpServletRequest request,
String strLogin)
findResetPassword in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic String getResetPasswordPageUrl(javax.servlet.http.HttpServletRequest request)
getResetPasswordPageUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic String getDoLogoutUrl()
LocalVariables ), default otherswise.getDoLogoutUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic String getAccessDeniedTemplate()
getAccessDeniedTemplate in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic String getAccessControledTemplate()
getAccessControledTemplate in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic fr.paris.lutece.portal.service.security.LuteceUser getAnonymousUser()
getAnonymousUser in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic String getAuthServiceName()
getAuthServiceName in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic String getAuthType(javax.servlet.http.HttpServletRequest request)
getAuthType in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic fr.paris.lutece.portal.service.security.LuteceUser getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request)
getHttpAuthenticatedUser in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationrequest - the reuqestnull otherwise.public String[] getRolesByUser(fr.paris.lutece.portal.service.security.LuteceUser user)
getRolesByUser in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic fr.paris.lutece.portal.service.security.LuteceUser getUser(String strUserLogin)
getUser in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationstrUserLogin - user loginnull otherwise.public Collection<fr.paris.lutece.portal.service.security.LuteceUser> getUsers()
getUsers in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic boolean isExternalAuthentication()
isExternalAuthentication in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic boolean isUserInRole(fr.paris.lutece.portal.service.security.LuteceUser user,
javax.servlet.http.HttpServletRequest request,
String strRole)
isUserInRole in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic boolean isUsersListAvailable()
isUsersListAvailable in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic fr.paris.lutece.portal.service.security.LuteceUser login(String strUserName, String strUserPassword, javax.servlet.http.HttpServletRequest request) throws LoginException, fr.paris.lutece.portal.service.security.LoginRedirectException
login in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationLoginExceptionfr.paris.lutece.portal.service.security.LoginRedirectExceptionpublic void logout(fr.paris.lutece.portal.service.security.LuteceUser user)
logout in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic boolean isMultiAuthenticationSupported()
isMultiAuthenticationSupported in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic fr.paris.lutece.portal.service.security.LuteceAuthentication getLuteceAuthentication(String strKey)
strKey - the keyLuteceAuthentication found, null otherwise.public boolean isDelegatedAuthentication()
isDelegatedAuthentication in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic List<fr.paris.lutece.portal.service.security.LuteceAuthentication> getListLuteceAuthentication()
public String getIconUrl()
getIconUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic String getName()
null, not supposed to be identifiablegetName in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic String getPluginName()
null, this implementation is not plugin related.getPluginName in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationpublic void updateDateLastLogin(fr.paris.lutece.portal.service.security.LuteceUser user,
javax.servlet.http.HttpServletRequest request)
updateDateLastLogin in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationCopyright © 2015 City of Paris. All rights reserved.