public class CASAuthentication extends fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
CONSTANT_HTTP |
static String |
CONSTANT_HTTPS |
static String |
CONSTANT_LUTECE_USER_PROPERTIES_PATH
Constants
|
static String |
CONSTANT_MANDATORY_ATTRIBUTE |
static String |
CONSTANT_ROLE_ASSOCIATIONS_PATH |
static String |
PROPERTY_BACK_URL_ERROR |
static String |
PROPERTY_MESSAGE_ERROR_LOGIN |
static String |
PROPERTY_ROLES_ASSOCIATIONS |
static String |
PROPERTY_URL_ERROR_LOGIN_PAGE |
static String |
PROPERTY_USER_MANDATORY_ATTRIBUTES |
static String |
PROPERTY_USER_MAPPING_ATTRIBUTES
Lutece User Attributs
|
Constructor and Description |
---|
CASAuthentication()
Constructor
|
Modifier and Type | Method and Description |
---|---|
fr.paris.lutece.portal.service.security.LuteceUser |
getAnonymousUser()
This method returns an anonymous Lutece user
|
String |
getAuthServiceName()
Gets the Authentication service name
|
String |
getAuthType(javax.servlet.http.HttpServletRequest request)
Gets the Authentication type
|
ICASUserKeyService |
getCASUserKeyService() |
fr.paris.lutece.portal.service.security.LuteceUser |
getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request)
Returns a Lutece user object if the user is already authenticated by the
WSSO
|
String |
getName() |
String |
getPluginName() |
String[] |
getRolesByUser(fr.paris.lutece.portal.service.security.LuteceUser user) |
boolean |
isExternalAuthentication()
Returns true
|
boolean |
isUserInRole(fr.paris.lutece.portal.service.security.LuteceUser user,
javax.servlet.http.HttpServletRequest request,
String strRole)
Checks that the current user is associated to a given role
|
fr.paris.lutece.portal.service.security.LuteceUser |
login(String strUserName,
String strUserPassword,
javax.servlet.http.HttpServletRequest request) |
void |
logout(fr.paris.lutece.portal.service.security.LuteceUser user)
This methods logout the user
|
void |
setCASUserKeyService(ICASUserKeyService cASUserKeyService) |
findResetPassword, getAccessControledTemplate, getAccessDeniedTemplate, getDoLoginUrl, getDoLogoutUrl, getIconUrl, getLoginPageUrl, getLostLoginPageUrl, getLostPasswordPageUrl, getNewAccountPageUrl, getResetPasswordPageUrl, getUser, getUsers, getViewAccountPageUrl, isDelegatedAuthentication, isMultiAuthenticationSupported, isUsersListAvailable, toString, updateDateLastLogin
public static final String PROPERTY_USER_MAPPING_ATTRIBUTES
public static final String PROPERTY_USER_MANDATORY_ATTRIBUTES
public static final String PROPERTY_ROLES_ASSOCIATIONS
public static final String PROPERTY_URL_ERROR_LOGIN_PAGE
public static final String PROPERTY_BACK_URL_ERROR
public static final String PROPERTY_MESSAGE_ERROR_LOGIN
public static final String CONSTANT_LUTECE_USER_PROPERTIES_PATH
public static final String CONSTANT_MANDATORY_ATTRIBUTE
public static final String CONSTANT_ROLE_ASSOCIATIONS_PATH
public static final String CONSTANT_HTTP
public static final String CONSTANT_HTTPS
public String getAuthServiceName()
getAuthServiceName
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
public String getAuthType(javax.servlet.http.HttpServletRequest request)
getAuthType
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
request
- The HTTP requestpublic fr.paris.lutece.portal.service.security.LuteceUser login(String strUserName, String strUserPassword, javax.servlet.http.HttpServletRequest request) throws LoginException, fr.paris.lutece.portal.service.security.LoginRedirectException
login
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
login
in class fr.paris.lutece.plugins.mylutece.authentication.AbstractAuthentication
LoginException
fr.paris.lutece.portal.service.security.LoginRedirectException
public fr.paris.lutece.portal.service.security.LuteceUser getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request)
getHttpAuthenticatedUser
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
getHttpAuthenticatedUser
in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication
request
- The HTTP requestpublic void logout(fr.paris.lutece.portal.service.security.LuteceUser user)
logout
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
user
- The userpublic String[] getRolesByUser(fr.paris.lutece.portal.service.security.LuteceUser user)
getRolesByUser
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
getRolesByUser
in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication
public fr.paris.lutece.portal.service.security.LuteceUser getAnonymousUser()
getAnonymousUser
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
public boolean isUserInRole(fr.paris.lutece.portal.service.security.LuteceUser user, javax.servlet.http.HttpServletRequest request, String strRole)
isUserInRole
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
isUserInRole
in class fr.paris.lutece.plugins.mylutece.authentication.AbstractAuthentication
user
- The userrequest
- The HTTP requeststrRole
- The role namepublic boolean isExternalAuthentication()
isExternalAuthentication
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
isExternalAuthentication
in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication
public String getName()
getName
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
public String getPluginName()
getPluginName
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
public ICASUserKeyService getCASUserKeyService()
public void setCASUserKeyService(ICASUserKeyService cASUserKeyService)
Copyright © 2018 City of Paris. All rights reserved.