|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.service.admin.AdminAuthenticationService
public final class AdminAuthenticationService
This class provides a security service to register and check user authentication
Method Summary | |
---|---|
java.lang.String |
getChangePasswordPageUrl()
Returns the modification password page URL of the Authentication Service |
java.lang.String |
getDoLoginUrl()
Returns the DoLogin URL of the Authentication Service |
java.lang.String |
getDoLogoutUrl()
Returns the DoLogout URL of the Authentication Service |
static AdminAuthenticationService |
getInstance()
Get the unique instance of the Security Service |
java.lang.String |
getLoginNextUrl(javax.servlet.http.HttpServletRequest request)
Returns the url (asked before login) to redirect after login |
java.lang.String |
getLoginPageUrl()
Returns the Login page URL of the Authentication Service |
java.lang.String |
getLostPasswordPageUrl()
Returns the lost password URL of the Authentication Service |
java.lang.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 |
java.util.Collection<AdminUser> |
getUserListFromModule(java.lang.String strLastName,
java.lang.String strFirstName,
java.lang.String strEmail)
Returns the user list |
AdminUser |
getUserPublicDataFromModule(java.lang.String strAccessCode)
|
java.lang.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,
java.lang.String strAccessCode,
java.lang.String strPassword)
Checks user's login with the Authentication service. |
void |
logoutUser(javax.servlet.http.HttpServletRequest request)
Logout the user |
void |
setLoginNextUrl(javax.servlet.http.HttpServletRequest request)
Set the admin login next url |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void init() throws LuteceInitException
LuteceInitException
- If error while initializationpublic static AdminAuthenticationService getInstance()
public boolean isDefaultModuleUsed()
public AdminUser getRemoteUser(javax.servlet.http.HttpServletRequest request) throws UserNotSignedException, AccessDeniedException
request
- The Http request
AccessDeniedException
- If the user cannot have access
UserNotSignedException
- If the user is not signedpublic void loginUser(javax.servlet.http.HttpServletRequest request, java.lang.String strAccessCode, java.lang.String strPassword) throws javax.security.auth.login.LoginException
request
- The Http requeststrAccessCode
- The user's loginstrPassword
- The user's password
javax.security.auth.login.LoginException
- The LoginExceptionpublic void logoutUser(javax.servlet.http.HttpServletRequest request)
request
- The HTTP requestpublic AdminUser getRegisteredUser(javax.servlet.http.HttpServletRequest request)
request
- The HTTP request
public boolean isExternalAuthentication()
public java.lang.String getLoginPageUrl()
public java.lang.String getChangePasswordPageUrl()
public java.lang.String getDoLoginUrl()
public java.lang.String getDoLogoutUrl()
public java.lang.String getNewAccountPageUrl()
public java.lang.String getViewAccountPageUrl()
public java.lang.String getLostPasswordPageUrl()
public java.util.Collection<AdminUser> getUserListFromModule(java.lang.String strLastName, java.lang.String strFirstName, java.lang.String strEmail)
strLastName
- The last namestrFirstName
- The first namestrEmail
- The email
public AdminUser getUserPublicDataFromModule(java.lang.String strAccessCode)
strAccessCode
- The login
public void setLoginNextUrl(javax.servlet.http.HttpServletRequest request)
request
- the HTTP requestpublic java.lang.String getLoginNextUrl(javax.servlet.http.HttpServletRequest request)
request
- The Http request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |