at.gv.egiz.eaaf.core.api.idp.auth.ISSOManager
@Service("MOAID_SSOManager") public class SSOManager extends Object implements at.gv.egiz.eaaf.core.api.idp.auth.ISSOManager
Modifier and Type | Field | Description |
---|---|---|
static String |
CONTEXTPATH |
|
static String |
DATAID_INTERFEDERATIOIDP_ENTITYID |
|
static String |
DATAID_INTERFEDERATIOIDP_RESPONSE |
|
static String |
DATAID_INTERFEDERATIOIDP_URL |
Constructor | Description |
---|---|
SSOManager() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
checkAndValidateSSOSession(at.gv.egiz.eaaf.core.api.IRequest pendingReq,
javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse httpResp) |
|
void |
checkInterfederationIsRequested(javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse httpResp,
at.gv.egiz.eaaf.core.api.IRequest protocolRequest) |
Check if interfederation IDP is requested via HTTP GET parameter or if interfederation cookie exists.
|
void |
createNewSSOSession(at.gv.egiz.eaaf.core.api.IRequest pendingReq,
String newSSOSessionId) |
|
String |
createNewSSOSessionCookie(javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse httpResp,
at.gv.egiz.eaaf.core.api.IRequest pendingReq) |
|
boolean |
destroySSOSessionOnIDPOnly(javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse httpResp,
at.gv.egiz.eaaf.core.api.IRequest pendingReq) |
|
String |
getSSOSessionID(javax.servlet.http.HttpServletRequest httpReq) |
|
String |
getUniqueSessionIdentifier(String ssoSessionID) |
|
void |
isSSOAllowedForSP(at.gv.egiz.eaaf.core.api.IRequest pendingReq,
javax.servlet.http.HttpServletRequest httpReq) |
|
boolean |
isValidSSOSession(String ssoSessionID,
at.gv.egiz.eaaf.core.api.IRequest protocolRequest) |
|
void |
populatePendingRequestWithSSOInformation(at.gv.egiz.eaaf.core.api.IRequest pendingReq) |
|
boolean |
removeInterfederatedSSOIDP(String entityID,
javax.servlet.http.HttpServletRequest request) |
|
void |
setInterfederationIDPCookie(javax.servlet.http.HttpServletRequest httpReq,
javax.servlet.http.HttpServletResponse httpResp,
String value) |
|
void |
updateSSOSession(at.gv.egiz.eaaf.core.api.IRequest pendingReq,
String newSSOSessionId,
at.gv.egiz.eaaf.core.api.idp.slo.SLOInformationInterface sloInformation) |
public static String CONTEXTPATH
public static final String DATAID_INTERFEDERATIOIDP_URL
public static final String DATAID_INTERFEDERATIOIDP_RESPONSE
public static final String DATAID_INTERFEDERATIOIDP_ENTITYID
public boolean checkAndValidateSSOSession(at.gv.egiz.eaaf.core.api.IRequest pendingReq, javax.servlet.http.HttpServletRequest httpReq, javax.servlet.http.HttpServletResponse httpResp) throws at.gv.egiz.eaaf.core.exceptions.EAAFSSOException
checkAndValidateSSOSession
in interface at.gv.egiz.eaaf.core.api.idp.auth.ISSOManager
at.gv.egiz.eaaf.core.exceptions.EAAFSSOException
public void isSSOAllowedForSP(at.gv.egiz.eaaf.core.api.IRequest pendingReq, javax.servlet.http.HttpServletRequest httpReq)
isSSOAllowedForSP
in interface at.gv.egiz.eaaf.core.api.idp.auth.ISSOManager
public void populatePendingRequestWithSSOInformation(at.gv.egiz.eaaf.core.api.IRequest pendingReq) throws at.gv.egiz.eaaf.core.exceptions.EAAFSSOException
populatePendingRequestWithSSOInformation
in interface at.gv.egiz.eaaf.core.api.idp.auth.ISSOManager
at.gv.egiz.eaaf.core.exceptions.EAAFSSOException
public boolean destroySSOSessionOnIDPOnly(javax.servlet.http.HttpServletRequest httpReq, javax.servlet.http.HttpServletResponse httpResp, at.gv.egiz.eaaf.core.api.IRequest pendingReq) throws at.gv.egiz.eaaf.core.exceptions.EAAFSSOException
destroySSOSessionOnIDPOnly
in interface at.gv.egiz.eaaf.core.api.idp.auth.ISSOManager
at.gv.egiz.eaaf.core.exceptions.EAAFSSOException
public String createNewSSOSessionCookie(javax.servlet.http.HttpServletRequest httpReq, javax.servlet.http.HttpServletResponse httpResp, at.gv.egiz.eaaf.core.api.IRequest pendingReq) throws at.gv.egiz.eaaf.core.exceptions.EAAFSSOException
createNewSSOSessionCookie
in interface at.gv.egiz.eaaf.core.api.idp.auth.ISSOManager
at.gv.egiz.eaaf.core.exceptions.EAAFSSOException
public void createNewSSOSession(at.gv.egiz.eaaf.core.api.IRequest pendingReq, String newSSOSessionId) throws at.gv.egiz.eaaf.core.exceptions.EAAFSSOException
createNewSSOSession
in interface at.gv.egiz.eaaf.core.api.idp.auth.ISSOManager
at.gv.egiz.eaaf.core.exceptions.EAAFSSOException
public void updateSSOSession(at.gv.egiz.eaaf.core.api.IRequest pendingReq, String newSSOSessionId, at.gv.egiz.eaaf.core.api.idp.slo.SLOInformationInterface sloInformation) throws at.gv.egiz.eaaf.core.exceptions.EAAFSSOException
updateSSOSession
in interface at.gv.egiz.eaaf.core.api.idp.auth.ISSOManager
at.gv.egiz.eaaf.core.exceptions.EAAFSSOException
public void checkInterfederationIsRequested(javax.servlet.http.HttpServletRequest httpReq, javax.servlet.http.HttpServletResponse httpResp, at.gv.egiz.eaaf.core.api.IRequest protocolRequest) throws at.gv.egovernment.moa.id.commons.api.exceptions.SessionDataStorageException, at.gv.egiz.eaaf.core.exceptions.EAAFStorageException
httpReq
- HttpServletRequesthttpResp
- HttpServletResponseprotocolRequest
- Authentication request which is actually in processat.gv.egovernment.moa.id.commons.api.exceptions.SessionDataStorageException
at.gv.egiz.eaaf.core.exceptions.EAAFStorageException
public void setInterfederationIDPCookie(javax.servlet.http.HttpServletRequest httpReq, javax.servlet.http.HttpServletResponse httpResp, String value)
public boolean isValidSSOSession(String ssoSessionID, at.gv.egiz.eaaf.core.api.IRequest protocolRequest) throws at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException, at.gv.egovernment.moa.id.commons.api.exceptions.SessionDataStorageException, at.gv.egiz.eaaf.core.exceptions.EAAFStorageException
at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException
at.gv.egovernment.moa.id.commons.api.exceptions.SessionDataStorageException
at.gv.egiz.eaaf.core.exceptions.EAAFStorageException
public String getSSOSessionID(javax.servlet.http.HttpServletRequest httpReq)
public boolean removeInterfederatedSSOIDP(String entityID, javax.servlet.http.HttpServletRequest request)
entityID
- request
- Copyright © 2019. All rights reserved.