Interface AdminAuthentication
-
- All Known Implementing Classes:
LuteceDefaultAdminAuthentication
public interface AdminAuthenticationThis Interface defines all methods required by an authentication service password is not valid
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AdminUsergetAnonymousUser()This method create an anonymous userjava.lang.StringgetAuthServiceName()Gets the Authentification service namejava.lang.StringgetAuthType(javax.servlet.http.HttpServletRequest request)Gets the Authentification typejava.lang.StringgetChangePasswordPageUrl()Returns the password modification page URL of the Authentication Servicejava.lang.StringgetDoLoginUrl()Returns the DoLogin URL of the Authentication Servicejava.lang.StringgetDoLogoutUrl()Returns the DoLogout URL of the Authentication ServiceAdminUsergetHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request)Returns a Lutece user object if the user is already authenticated in the Http request.java.lang.StringgetLoginPageUrl()Returns the Login page URL of the Authentication Servicejava.lang.StringgetLostLoginPageUrl()Returns the lost login URL of the Authentication Servicejava.lang.StringgetLostPasswordPageUrl()Returns the lost password URL of the Authentication Servicejava.lang.StringgetNewAccountPageUrl()Returns the new account page URL of the Authentication Servicejava.util.Collection<AdminUser>getUserList(java.lang.String strLastName, java.lang.String strFirstName, java.lang.String strEmail)get the list of user to display a list for selection in the main user management pageAdminUsergetUserPublicData(java.lang.String strAccessCode)Get user datajava.lang.StringgetViewAccountPageUrl()Returns the view account page URL of the Authentication ServicebooleanisExternalAuthentication()Indicates that the user should be already authenticated by an external authentication service (ex : Web Server authentication).AdminUserlogin(java.lang.String strAccessCode, java.lang.String strUserPassword, javax.servlet.http.HttpServletRequest request)Checks the loginvoidlogout(AdminUser user)logout the user
-
-
-
Method Detail
-
getAuthServiceName
java.lang.String getAuthServiceName()
Gets the Authentification service name- Returns:
- The Service Name
-
getAuthType
java.lang.String getAuthType(javax.servlet.http.HttpServletRequest request)
Gets the Authentification type- Parameters:
request- The HTTP request- Returns:
- The type of authentication
-
login
AdminUser login(java.lang.String strAccessCode, java.lang.String strUserPassword, javax.servlet.http.HttpServletRequest request) throws javax.security.auth.login.LoginException
Checks the login- Parameters:
strAccessCode- The usernamestrUserPassword- The user's passwordrequest- The HttpServletRequest- Returns:
- The login
- Throws:
javax.security.auth.login.LoginException- The Login Exception
-
logout
void logout(AdminUser user)
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
AdminUser getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request)
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
java.lang.String getLoginPageUrl()
Returns the Login page URL of the Authentication Service- Returns:
- The URL
-
getChangePasswordPageUrl
java.lang.String getChangePasswordPageUrl()
Returns the password modification page URL of the Authentication Service- Returns:
- The URL
-
getDoLoginUrl
java.lang.String getDoLoginUrl()
Returns the DoLogin URL of the Authentication Service- Returns:
- The URL
-
getDoLogoutUrl
java.lang.String getDoLogoutUrl()
Returns the DoLogout URL of the Authentication Service- Returns:
- The URL
-
getNewAccountPageUrl
java.lang.String getNewAccountPageUrl()
Returns the new account page URL of the Authentication Service- Returns:
- The URL
-
getViewAccountPageUrl
java.lang.String getViewAccountPageUrl()
Returns the view account page URL of the Authentication Service- Returns:
- The URL
-
getLostPasswordPageUrl
java.lang.String getLostPasswordPageUrl()
Returns the lost password URL of the Authentication Service- Returns:
- The URL
-
getLostLoginPageUrl
java.lang.String getLostLoginPageUrl()
Returns the lost login URL of the Authentication Service- Returns:
- The URL
-
getUserList
java.util.Collection<AdminUser> getUserList(java.lang.String strLastName, java.lang.String strFirstName, java.lang.String strEmail)
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
AdminUser getUserPublicData(java.lang.String strAccessCode)
Get user data- Parameters:
strAccessCode- The access code (login)- Returns:
- The admin User
-
-