com.semarchy.mdm.client
Class CookieCredential
java.lang.Object
com.semarchy.mdm.client.CookieCredential
- All Implemented Interfaces:
- IMDMCredential, Serializable
public final class CookieCredential
- extends Object
- implements IMDMCredential
This IMDMCredential
implementation is useful when client is a webapp running
inside a servlet container and when single sign-on is configured between this web app and Convergence for MDM web application.
Usage :
HttpServletRequest httpServletRequest = ...; // Retrieve a httpServletRequest from client web application
IMDMConnection conn = MDMConnectionFactory.connect(url, new CookieCredential(httpServletRequest.getCookies()));
- Author:
- sarod
- See Also:
- Serialized Form
CookieCredential
public CookieCredential(javax.servlet.http.Cookie[] pCookies)
getCookies
public javax.servlet.http.Cookie[] getCookies()
- The cookies that will be propagated
- Returns:
toString
public String toString()
- Specified by:
toString
in interface IMDMCredential
- Overrides:
toString
in class Object
Copyright © 2015. All Rights Reserved.