Class LuteceDefaultAdminAuthentication
java.lang.Object
fr.paris.lutece.portal.business.user.authentication.LuteceDefaultAdminAuthentication
- All Implemented Interfaces:
AdminAuthentication
Default authentication module for admin authentication
-
Constructor Summary
Constructors -
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) Not used - Return null always for this modulegetUserPublicData(String strLogin) Not used - Return null always for this moduleReturns 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 uservoidSetter used by Spring IoC
-
Constructor Details
-
LuteceDefaultAdminAuthentication
public LuteceDefaultAdminAuthentication()
-
-
Method Details
-
setDao
Setter used by Spring IoC- Parameters:
dao- The DAO (defined in the Spring context)
-
getAuthServiceName
Gets the Authentification service name- Specified by:
getAuthServiceNamein interfaceAdminAuthentication- Returns:
- The Service Name
-
getAuthType
Gets the Authentification type- Specified by:
getAuthTypein interfaceAdminAuthentication- Parameters:
request- The HTTP request- Returns:
- The type of authentication
-
login
public AdminUser login(String strAccessCode, String strUserPassword, javax.servlet.http.HttpServletRequest request) throws LoginException Checks the login- Specified by:
loginin interfaceAdminAuthentication- Parameters:
strAccessCode- The usernamestrUserPassword- The user's passwordrequest- The HttpServletRequest- Returns:
- The login
- Throws:
LoginException- The Login Exception
-
logout
logout the user- Specified by:
logoutin interfaceAdminAuthentication- Parameters:
user- The user
-
getAnonymousUser
This method create an anonymous user- Specified by:
getAnonymousUserin interfaceAdminAuthentication- Returns:
- A AdminUser object corresponding to an anonymous user
-
isExternalAuthentication
public boolean isExternalAuthentication()Indicates that the user should be already authenticated by an external authentication service (ex : Web Server authentication).- Specified by:
isExternalAuthenticationin interfaceAdminAuthentication- 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.- Specified by:
getHttpAuthenticatedUserin interfaceAdminAuthentication- Parameters:
request- The HTTP request- Returns:
- Returns A Lutece User
-
getLoginPageUrl
Returns the Login page URL of the Authentication Service- Specified by:
getLoginPageUrlin interfaceAdminAuthentication- Returns:
- The URL
-
getChangePasswordPageUrl
Returns the password modification page URL of the Authentication Service- Specified by:
getChangePasswordPageUrlin interfaceAdminAuthentication- Returns:
- The URL
-
getDoLoginUrl
Returns the DoLogin URL of the Authentication Service- Specified by:
getDoLoginUrlin interfaceAdminAuthentication- Returns:
- The URL
-
getDoLogoutUrl
Returns the DoLogout URL of the Authentication Service- Specified by:
getDoLogoutUrlin interfaceAdminAuthentication- Returns:
- The URL
-
getNewAccountPageUrl
Returns the new account page URL of the Authentication Service- Specified by:
getNewAccountPageUrlin interfaceAdminAuthentication- Returns:
- The URL
-
getViewAccountPageUrl
Returns the view account page URL of the Authentication Service- Specified by:
getViewAccountPageUrlin interfaceAdminAuthentication- Returns:
- The URL
-
getLostPasswordPageUrl
Returns the lost password URL of the Authentication Service- Specified by:
getLostPasswordPageUrlin interfaceAdminAuthentication- Returns:
- The URL
-
getLostLoginPageUrl
Returns the lost login URL of the Authentication Service- Specified by:
getLostLoginPageUrlin interfaceAdminAuthentication- Returns:
- The URL
-
getUserList
Not used - Return null always for this module- Specified by:
getUserListin interfaceAdminAuthentication- Parameters:
strLastName- The last namestrFirstName- The first namestrEmail- The email- Returns:
- null
- See Also:
-
getUserPublicData
Not used - Return null always for this module- Specified by:
getUserPublicDatain interfaceAdminAuthentication- Parameters:
strLogin- The login- Returns:
- null
- See Also:
-