public class LuteceDefaultAdminAuthentication extends Object implements AdminAuthentication
Constructor and Description |
---|
LuteceDefaultAdminAuthentication() |
Modifier and Type | Method and Description |
---|---|
AdminUser |
getAnonymousUser()
This method create an anonymous user
|
String |
getAuthServiceName()
Gets the Authentification service name
|
String |
getAuthType(javax.servlet.http.HttpServletRequest request)
Gets the Authentification type
|
String |
getChangePasswordPageUrl()
Returns the password modification page URL of the Authentication Service
|
String |
getDoLoginUrl()
Returns the DoLogin URL of the Authentication Service
|
String |
getDoLogoutUrl()
Returns the DoLogout URL of the Authentication Service
|
AdminUser |
getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request)
Returns a Lutece user object if the user is already authenticated in the Http request.
|
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
|
String |
getNewAccountPageUrl()
Returns the new account page URL of the Authentication Service
|
Collection<AdminUser> |
getUserList(String strLastName,
String strFirstName,
String strEmail)
Not used - Return null always for this module
|
AdminUser |
getUserPublicData(String strLogin)
Not used - Return null always for this module
|
String |
getViewAccountPageUrl()
Returns the view account page URL of the Authentication Service
|
boolean |
isExternalAuthentication()
Indicates that the user should be already authenticated by an external authentication service (ex : Web Server authentication).
|
AdminUser |
login(String strAccessCode,
String strUserPassword,
javax.servlet.http.HttpServletRequest request)
Checks the login
|
void |
logout(AdminUser user)
logout the user
|
void |
setDao(ILuteceDefaultAdminUserDAO dao)
Setter used by Spring IoC
|
public void setDao(ILuteceDefaultAdminUserDAO dao)
dao
- The DAO (defined in the Spring context)public String getAuthServiceName()
getAuthServiceName
in interface AdminAuthentication
public String getAuthType(javax.servlet.http.HttpServletRequest request)
getAuthType
in interface AdminAuthentication
request
- The HTTP requestpublic AdminUser login(String strAccessCode, String strUserPassword, javax.servlet.http.HttpServletRequest request) throws LoginException
login
in interface AdminAuthentication
strAccessCode
- The usernamestrUserPassword
- The user's passwordrequest
- The HttpServletRequestLoginException
- The Login Exceptionpublic void logout(AdminUser user)
logout
in interface AdminAuthentication
user
- The userpublic AdminUser getAnonymousUser()
getAnonymousUser
in interface AdminAuthentication
public boolean isExternalAuthentication()
isExternalAuthentication
in interface AdminAuthentication
public AdminUser getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request)
getHttpAuthenticatedUser
in interface AdminAuthentication
request
- The HTTP requestpublic String getLoginPageUrl()
getLoginPageUrl
in interface AdminAuthentication
public String getChangePasswordPageUrl()
getChangePasswordPageUrl
in interface AdminAuthentication
public String getDoLoginUrl()
getDoLoginUrl
in interface AdminAuthentication
public String getDoLogoutUrl()
getDoLogoutUrl
in interface AdminAuthentication
public String getNewAccountPageUrl()
getNewAccountPageUrl
in interface AdminAuthentication
public String getViewAccountPageUrl()
getViewAccountPageUrl
in interface AdminAuthentication
public String getLostPasswordPageUrl()
getLostPasswordPageUrl
in interface AdminAuthentication
public String getLostLoginPageUrl()
getLostLoginPageUrl
in interface AdminAuthentication
public Collection<AdminUser> getUserList(String strLastName, String strFirstName, String strEmail)
getUserList
in interface AdminAuthentication
strLastName
- The last namestrFirstName
- The first namestrEmail
- The emailAdminAuthentication.getUserList(String strLastName, String strFirstName, String strEmail )
public AdminUser getUserPublicData(String strLogin)
getUserPublicData
in interface AdminAuthentication
strLogin
- The loginAdminAuthentication.getUserPublicData(java.lang.String)
Copyright © 2020 City of Paris. All rights reserved.