|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication
fr.paris.lutece.plugins.mylutece.modules.database.authentication.BaseAuthentication
public class BaseAuthentication
The Class provides an implementation of the inherited abstract class PortalAuthentication based on a database.
| Constructor Summary | |
|---|---|
BaseAuthentication()
Constructor |
|
| Method Summary | |
|---|---|
fr.paris.lutece.portal.service.security.LuteceUser |
getAnonymousUser()
This method returns an anonymous Lutece user |
java.lang.String |
getAuthServiceName()
Gets the Authentification service name |
java.lang.String |
getAuthType(javax.servlet.http.HttpServletRequest request)
Gets the Authentification type |
java.lang.String |
getChangePasswordPageUrl()
Returns the Change password 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 |
fr.paris.lutece.portal.service.security.LuteceUser |
getUser(java.lang.String userLogin)
Returns the user managed by the authentication service if this feature is available. |
java.util.Collection<fr.paris.lutece.portal.service.security.LuteceUser> |
getUsers()
Returns all users managed by the authentication service if this feature is available. |
java.lang.String |
getViewAccountPageUrl()
Returns the View account page URL of the Authentication Service |
boolean |
isUserInRole(fr.paris.lutece.portal.service.security.LuteceUser user,
javax.servlet.http.HttpServletRequest request,
java.lang.String strRole)
Checks that the current user is associated to a given role |
fr.paris.lutece.portal.service.security.LuteceUser |
login(java.lang.String strUserName,
java.lang.String strUserPassword,
javax.servlet.http.HttpServletRequest request)
This methods checks the login info in the database |
void |
logout(fr.paris.lutece.portal.service.security.LuteceUser user)
This methods logout the user |
| Methods inherited from class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication |
|---|
getAccessControledTemplate, getAccessDeniedTemplate, getDoLoginUrl, getDoLogoutUrl, getHttpAuthenticatedUser, getLoginPageUrl, isExternalAuthentication, isUsersListAvailable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseAuthentication()
| Method Detail |
|---|
public java.lang.String getAuthServiceName()
public java.lang.String getAuthType(javax.servlet.http.HttpServletRequest request)
request - The HTTP request
public fr.paris.lutece.portal.service.security.LuteceUser login(java.lang.String strUserName,
java.lang.String strUserPassword,
javax.servlet.http.HttpServletRequest request)
throws javax.security.auth.login.LoginException
strUserName - The usernamestrUserPassword - The passwordrequest - The HttpServletRequest
javax.security.auth.login.LoginException - The LoginExceptionpublic void logout(fr.paris.lutece.portal.service.security.LuteceUser user)
user - The userpublic fr.paris.lutece.portal.service.security.LuteceUser getAnonymousUser()
public boolean isUserInRole(fr.paris.lutece.portal.service.security.LuteceUser user,
javax.servlet.http.HttpServletRequest request,
java.lang.String strRole)
user - The userrequest - The HTTP requeststrRole - The role name
public java.lang.String getViewAccountPageUrl()
getViewAccountPageUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationgetViewAccountPageUrl in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthenticationpublic java.lang.String getNewAccountPageUrl()
getNewAccountPageUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationgetNewAccountPageUrl in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthenticationpublic java.lang.String getChangePasswordPageUrl()
public java.lang.String getLostPasswordPageUrl()
getLostPasswordPageUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationgetLostPasswordPageUrl in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthenticationpublic java.util.Collection<fr.paris.lutece.portal.service.security.LuteceUser> getUsers()
getUsers in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationgetUsers in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthenticationpublic fr.paris.lutece.portal.service.security.LuteceUser getUser(java.lang.String userLogin)
getUser in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationgetUser in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||