public final class AdminAuthenticationService extends Object
Modifier and Type | Method and Description |
---|---|
String |
getChangePasswordPageUrl()
Returns the modification password 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
|
static AdminAuthenticationService |
getInstance()
Get the unique instance of the Security Service
|
String |
getLoginNextUrl(javax.servlet.http.HttpServletRequest request)
Returns the url (asked before login) to redirect after login
|
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
|
AdminUser |
getRegisteredUser(javax.servlet.http.HttpServletRequest request)
Gets the Lutece user registered in the Http session
|
AdminUser |
getRemoteUser(javax.servlet.http.HttpServletRequest request)
Gets the AdminUser attached to the current Http session
|
Collection<AdminUser> |
getUserListFromModule(String strLastName,
String strFirstName,
String strEmail)
Returns the user list
|
AdminUser |
getUserPublicDataFromModule(String strAccessCode) |
String |
getViewAccountPageUrl()
Returns the view account page URL of the Authentication Service
|
static void |
init()
Initialize service
|
boolean |
isDefaultModuleUsed()
Check whether the authentication service is configurer on the default module.
|
boolean |
isExternalAuthentication()
Returns the authentication type : External or Lutece portal based
|
void |
loginUser(javax.servlet.http.HttpServletRequest request,
String strAccessCode,
String strPassword)
Checks user's login with the Authentication service.
|
void |
logoutUser(javax.servlet.http.HttpServletRequest request)
Logout the user
|
void |
registerUser(javax.servlet.http.HttpServletRequest request,
AdminUser user)
Register the user in the Http session
|
void |
setLoginNextUrl(javax.servlet.http.HttpServletRequest request)
Set the admin login next url
|
void |
unregisterUser(javax.servlet.http.HttpServletRequest request)
Unregister the user in the Http session
|
public static void init()
public static AdminAuthenticationService getInstance()
public boolean isDefaultModuleUsed()
public AdminUser getRemoteUser(javax.servlet.http.HttpServletRequest request) throws UserNotSignedException, AccessDeniedException
request
- The Http requestAccessDeniedException
- If the user cannot have accessUserNotSignedException
- If the user is not signedpublic void loginUser(javax.servlet.http.HttpServletRequest request, String strAccessCode, String strPassword) throws LoginException
request
- The Http requeststrAccessCode
- The user's loginstrPassword
- The user's passwordLoginException
- The LoginExceptionpublic void logoutUser(javax.servlet.http.HttpServletRequest request)
request
- The HTTP requestpublic void registerUser(javax.servlet.http.HttpServletRequest request, AdminUser user) throws AccessDeniedException, UserNotSignedException
request
- The Http requestuser
- The current userAccessDeniedException
- If the user cannot have accessUserNotSignedException
- If the user is not signedpublic void unregisterUser(javax.servlet.http.HttpServletRequest request)
request
- The Http requestpublic AdminUser getRegisteredUser(javax.servlet.http.HttpServletRequest request)
request
- The HTTP requestpublic boolean isExternalAuthentication()
public String getLoginPageUrl()
public String getChangePasswordPageUrl()
public String getDoLoginUrl()
public String getDoLogoutUrl()
public String getNewAccountPageUrl()
public String getViewAccountPageUrl()
public String getLostPasswordPageUrl()
public String getLostLoginPageUrl()
public Collection<AdminUser> getUserListFromModule(String strLastName, String strFirstName, String strEmail)
strLastName
- The last namestrFirstName
- The first namestrEmail
- The emailpublic AdminUser getUserPublicDataFromModule(String strAccessCode)
strAccessCode
- The loginpublic void setLoginNextUrl(javax.servlet.http.HttpServletRequest request)
request
- the HTTP requestpublic String getLoginNextUrl(javax.servlet.http.HttpServletRequest request)
request
- The Http requestCopyright © 2020 City of Paris. All rights reserved.