Interface AdminAuthentication
- All Known Implementing Classes:
LuteceDefaultAdminAuthentication
public interface AdminAuthentication
This Interface defines all methods required by an authentication service password is not valid
-
Method Summary
Modifier and TypeMethodDescriptionThis method create an anonymous userGets the Authentification service namegetAuthType(javax.servlet.http.HttpServletRequest request) Gets the Authentification typeReturns the password modification page URL of the Authentication ServiceReturns the DoLogin URL of the Authentication ServiceReturns the DoLogout URL of the Authentication ServicegetHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request) Returns a Lutece user object if the user is already authenticated in the Http request.Returns the Login page URL of the Authentication ServiceReturns the lost login URL of the Authentication ServiceReturns the lost password URL of the Authentication ServiceReturns the new account page URL of the Authentication ServicegetUserList(String strLastName, String strFirstName, String strEmail) get the list of user to display a list for selection in the main user management pagegetUserPublicData(String strAccessCode) Get user dataReturns the view account page URL of the Authentication ServicebooleanIndicates that the user should be already authenticated by an external authentication service (ex : Web Server authentication).Checks the loginvoidlogout the user
-
Method Details
-
getAuthServiceName
String getAuthServiceName()Gets the Authentification service name- Returns:
- The Service Name
-
getAuthType
Gets the Authentification type- Parameters:
request- The HTTP request- Returns:
- The type of authentication
-
login
AdminUser login(String strAccessCode, String strUserPassword, javax.servlet.http.HttpServletRequest request) throws LoginException Checks the login- Parameters:
strAccessCode- The usernamestrUserPassword- The user's passwordrequest- The HttpServletRequest- Returns:
- The login
- Throws:
LoginException- The Login Exception
-
logout
logout the user- Parameters:
user- The user
-
getAnonymousUser
AdminUser getAnonymousUser()This method create an anonymous user- Returns:
- A AdminUser object corresponding to an anonymous user
-
isExternalAuthentication
boolean isExternalAuthentication()Indicates that the user should be already authenticated by an external authentication service (ex : Web Server authentication).- Returns:
- true if the authentication is external, false if the authentication is provided by the Lutece portal.
-
getHttpAuthenticatedUser
Returns a Lutece user object if the user is already authenticated in the Http request. This method should return null if the user is not authenticated or if the authentication service is not based on Http authentication.- Parameters:
request- The HTTP request- Returns:
- Returns A Lutece User
-
getLoginPageUrl
String getLoginPageUrl()Returns the Login page URL of the Authentication Service- Returns:
- The URL
-
getChangePasswordPageUrl
String getChangePasswordPageUrl()Returns the password modification page URL of the Authentication Service- Returns:
- The URL
-
getDoLoginUrl
String getDoLoginUrl()Returns the DoLogin URL of the Authentication Service- Returns:
- The URL
-
getDoLogoutUrl
String getDoLogoutUrl()Returns the DoLogout URL of the Authentication Service- Returns:
- The URL
-
getNewAccountPageUrl
String getNewAccountPageUrl()Returns the new account page URL of the Authentication Service- Returns:
- The URL
-
getViewAccountPageUrl
String getViewAccountPageUrl()Returns the view account page URL of the Authentication Service- Returns:
- The URL
-
getLostPasswordPageUrl
String getLostPasswordPageUrl()Returns the lost password URL of the Authentication Service- Returns:
- The URL
-
getLostLoginPageUrl
String getLostLoginPageUrl()Returns the lost login URL of the Authentication Service- Returns:
- The URL
-
getUserList
get the list of user to display a list for selection in the main user management page- Parameters:
strLastName- The last namestrFirstName- The first namestrEmail- The email- Returns:
- the collection of available users
-
getUserPublicData
Get user data- Parameters:
strAccessCode- The access code (login)- Returns:
- The admin User
-