|
||||||||||
| 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 |
|---|
getAccessControledTemplate, getAccessDeniedTemplate, getDoLoginUrl, getDoLogoutUrl, getIconUrl, getLoginPageUrl, getLostPasswordPageUrl, getNewAccountPageUrl, 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()
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,
fr.paris.lutece.portal.service.security.LoginRedirectException
javax.security.auth.login.LoginException
fr.paris.lutece.portal.service.security.LoginRedirectExceptionpublic fr.paris.lutece.portal.service.security.LuteceUser getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request)
getHttpAuthenticatedUser in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationgetHttpAuthenticatedUser in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthenticationrequest - The HTTP request
public void logout(fr.paris.lutece.portal.service.security.LuteceUser user)
user - The userpublic java.lang.String[] getRolesByUser(fr.paris.lutece.portal.service.security.LuteceUser user)
getRolesByUser in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationgetRolesByUser in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthenticationpublic 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 boolean isExternalAuthentication()
isExternalAuthentication in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationisExternalAuthentication in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthenticationpublic java.lang.String getName()
public java.lang.String getPluginName()
public ICASUserKeyService getCASUserKeyService()
public void setCASUserKeyService(ICASUserKeyService cASUserKeyService)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||