|
||||||||||
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.cas.authentication.CASAuthentication
public class CASAuthentication
The class provides an implementation of the inherited abstract class PortalAuthentication based on CAS
Field Summary | |
---|---|
static java.lang.String |
CONSTANT_LUTECE_USER_PROPERTIES_PATH
Constants |
static java.lang.String |
PROPERTY_BACK_URL_ERROR
|
static java.lang.String |
PROPERTY_MESSAGE_ERROR_LOGIN
|
static java.lang.String |
PROPERTY_URL_ERROR_LOGIN_PAGE
|
static java.lang.String |
PROPERTY_USER_MAPPING_ATTRIBUTES
Lutece User Attributs |
Constructor Summary | |
---|---|
CASAuthentication()
Constructor |
Method Summary | |
---|---|
fr.paris.lutece.portal.service.security.LuteceUser |
getAnonymousUser()
This method returns an anonymous Lutece user |
java.lang.String |
getAuthServiceName()
Gets the Authentication service name |
java.lang.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 |
java.lang.String |
getName()
|
java.lang.String |
getPluginName()
|
java.lang.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,
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)
|
void |
logout(fr.paris.lutece.portal.service.security.LuteceUser user)
This methods logout the user |
void |
setCASUserKeyService(ICASUserKeyService cASUserKeyService)
|
Methods inherited from class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication |
---|
findResetPassword, getAccessControledTemplate, getAccessDeniedTemplate, getDoLoginUrl, getDoLogoutUrl, getIconUrl, getLoginPageUrl, getLostPasswordPageUrl, getNewAccountPageUrl, getResetPasswordPageUrl, getUser, getUsers, getViewAccountPageUrl, isDelegatedAuthentication, isMultiAuthenticationSupported, isUsersListAvailable, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_USER_MAPPING_ATTRIBUTES
public static final java.lang.String PROPERTY_URL_ERROR_LOGIN_PAGE
public static final java.lang.String PROPERTY_BACK_URL_ERROR
public static final java.lang.String PROPERTY_MESSAGE_ERROR_LOGIN
public static final java.lang.String CONSTANT_LUTECE_USER_PROPERTIES_PATH
Constructor Detail |
---|
public CASAuthentication()
Method Detail |
---|
public java.lang.String getAuthServiceName()
getAuthServiceName
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
public java.lang.String getAuthType(javax.servlet.http.HttpServletRequest request)
getAuthType
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
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, fr.paris.lutece.portal.service.security.LoginRedirectException
login
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
javax.security.auth.login.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 request
public void logout(fr.paris.lutece.portal.service.security.LuteceUser user)
logout
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
user
- The userpublic java.lang.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, java.lang.String strRole)
isUserInRole
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
user
- The userrequest
- The HTTP requeststrRole
- The role name
public boolean isExternalAuthentication()
isExternalAuthentication
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
isExternalAuthentication
in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication
public java.lang.String getName()
getName
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
public java.lang.String getPluginName()
getPluginName
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
public ICASUserKeyService getCASUserKeyService()
public void setCASUserKeyService(ICASUserKeyService cASUserKeyService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |