public class OpenSSOAgentImpl extends GenericAgent implements OpenSSOAgent
| Modifier and Type | Field and Description |
|---|---|
static String |
IN_RESPONSE_TO_ATTR |
AUTHENTICATED_CREDENTIALS| Constructor and Description |
|---|
OpenSSOAgentImpl(org.exoplatform.container.xml.InitParams params) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getSubject(String token) |
protected boolean |
isTokenValid(String token) |
protected Properties |
loadAttributes(String response) |
void |
setCookieName(String cookieName) |
void |
setServerUrl(String serverUrl) |
protected boolean |
tryMessageFromCDC(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
This method is useful only for Cross-Domain (CD) authentication scenario when GateIn and OpenSSO are in different DNS domains and they can't share cookie.
|
protected void |
validateCDMessageContext(javax.servlet.http.HttpServletRequest httpRequest,
org.gatein.sso.agent.opensso.CDMessageContext context)
Validation of various criterias in
CDMessageContext |
void |
validateTicket(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse) |
getContainer, getUserPrincipal, saveSSOCredentialspublic static final String IN_RESPONSE_TO_ATTR
public OpenSSOAgentImpl(org.exoplatform.container.xml.InitParams params)
public void setCookieName(String cookieName)
setCookieName in interface OpenSSOAgentpublic void setServerUrl(String serverUrl)
setServerUrl in interface OpenSSOAgentpublic void validateTicket(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
throws Exception
validateTicket in interface OpenSSOAgentExceptionprotected boolean tryMessageFromCDC(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
throws IOException
httpRequest - httpResponse - IOExceptionprotected void validateCDMessageContext(javax.servlet.http.HttpServletRequest httpRequest,
org.gatein.sso.agent.opensso.CDMessageContext context)
CDMessageContexthttpRequest - context - protected Properties loadAttributes(String response) throws Exception
ExceptionCopyright © 2021 JBoss by Red Hat. All Rights Reserved.