public final class OpenamService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONSTANT_LUTECE_USER_PROPERTIES_PATH |
static String |
ERROR_ALREADY_SUBSCRIBE |
static String |
ERROR_DURING_SUBSCRIBE |
static String |
PROPERTY_USER_KEY_NAME |
static String |
PROPERTY_USER_MAPPING_ATTRIBUTES |
| Modifier and Type | Method and Description |
|---|---|
OpenamUser |
doLogin(javax.servlet.http.HttpServletRequest request,
String strUserName,
String strUserPassword,
OpenamAuthentication openamAuthentication)
Process login
|
void |
doLogout(OpenamUser user)
Logout to openam
|
String |
getConnectionCookie(javax.servlet.http.HttpServletRequest request)
Extract the value of the connection cookie
|
OpenamUser |
getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request,
OpenamAuthentication openamAuthentication)
Gets the authenticated user
|
Map<String,String> |
getIdentityInformations(String strName,
Map<String,String> attributeUserMapping) |
static OpenamService |
getInstance()
Gets the instance
|
void |
init()
Inits plugin.
|
void |
removeConnectionCookie(javax.servlet.http.HttpServletResponse response)
set a paris connect cokkie in the HttpServletResponse
|
void |
setConnectionCookie(String strPCUID,
javax.servlet.http.HttpServletResponse response)
set a paris connect cokkie in the HttpServletResponse
|
public static final String ERROR_ALREADY_SUBSCRIBE
public static final String ERROR_DURING_SUBSCRIBE
public static final String PROPERTY_USER_KEY_NAME
public static final String PROPERTY_USER_MAPPING_ATTRIBUTES
public static final String CONSTANT_LUTECE_USER_PROPERTIES_PATH
public static OpenamService getInstance()
public void init()
public OpenamUser doLogin(javax.servlet.http.HttpServletRequest request, String strUserName, String strUserPassword, OpenamAuthentication openamAuthentication) throws OpenamAuthenticationAgentException
request - The HTTP requeststrUserName - The user's namestrUserPassword - The user's passwordopenamAuthentication - The authenticationOpenamAuthenticationAgentExceptionpublic void doLogout(OpenamUser user)
user - the Userpublic OpenamUser getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request, OpenamAuthentication openamAuthentication)
request - The HTTP requestopenamAuthentication - The Authenticationpublic String getConnectionCookie(javax.servlet.http.HttpServletRequest request)
request - The HTTP requestpublic void setConnectionCookie(String strPCUID, javax.servlet.http.HttpServletResponse response)
strPCUID - the user PCUIDresponse - The HTTP responsepublic void removeConnectionCookie(javax.servlet.http.HttpServletResponse response)
strPCUID - the user PCUIDresponse - The HTTP responseCopyright © 2015 City of Paris. All rights reserved.