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