public class MultiLuteceAuthentication extends AbstractAuthentication
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.public String getDoLoginUrl()
LocalVariables
), default otherswise.public String getNewAccountPageUrl()
LocalVariables
), default otherswise.public String getViewAccountPageUrl()
LocalVariables
), default otherswise.public String getLostPasswordPageUrl()
LocalVariables
), default otherswise.public String getLostLoginPageUrl()
LocalVariables
), default otherwise.public boolean findResetPassword(javax.servlet.http.HttpServletRequest request, String strLogin)
public String getResetPasswordPageUrl(javax.servlet.http.HttpServletRequest request)
public String getDoLogoutUrl()
LocalVariables
), default otherswise.public String getAccessDeniedTemplate()
public String getAccessControledTemplate()
public fr.paris.lutece.portal.service.security.LuteceUser getAnonymousUser()
public String getAuthServiceName()
public String getAuthType(javax.servlet.http.HttpServletRequest request)
public fr.paris.lutece.portal.service.security.LuteceUser getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request)
getHttpAuthenticatedUser
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
getHttpAuthenticatedUser
in class AbstractAuthentication
request
- the reuqestnull
otherwise.public String[] getRolesByUser(fr.paris.lutece.portal.service.security.LuteceUser user)
public fr.paris.lutece.portal.service.security.LuteceUser getUser(String strUserLogin)
strUserLogin
- user loginnull
otherwise.public Collection<fr.paris.lutece.portal.service.security.LuteceUser> getUsers()
public boolean isExternalAuthentication()
public 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.LuteceAuthentication
isUserInRole
in class AbstractAuthentication
public boolean isUsersListAvailable()
public 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.LuteceAuthentication
login
in class AbstractAuthentication
LoginException
fr.paris.lutece.portal.service.security.LoginRedirectException
public void logout(fr.paris.lutece.portal.service.security.LuteceUser user)
public boolean isMultiAuthenticationSupported()
public fr.paris.lutece.portal.service.security.LuteceAuthentication getLuteceAuthentication(String strKey)
strKey
- the keyLuteceAuthentication
found, null
otherwise.public boolean isDelegatedAuthentication()
public List<fr.paris.lutece.portal.service.security.LuteceAuthentication> getListLuteceAuthentication()
public String getIconUrl()
public String getName()
null
, not supposed to be identifiablepublic String getPluginName()
null
, this implementation is not plugin related.public void updateDateLastLogin(fr.paris.lutece.portal.service.security.LuteceUser user, javax.servlet.http.HttpServletRequest request)
Copyright © 2021 City of Paris. All rights reserved.