use of com.sun.identity.federation.services.fednsso.FSBrowserArtifactConsumerHandler in project OpenAM by OpenRock.
the class FSServiceManager method getBrowserArtifactHandler.
/**
* Obtains handler at <code>SP</code> side that will handle browser
* artifact profile.
* @param request http request object
* @param response http response object
* @param realm The realm under which the entity resides.
* @param idpSuccinctId identity provider's succinct ID
* @param samlRequest <code>SAML</code> request object
* @param relayState where to go after the process is done
* @return <code>FSAssertionArtifactHandler</code> object
*/
public FSAssertionArtifactHandler getBrowserArtifactHandler(HttpServletRequest request, HttpServletResponse response, String realm, String idpSuccinctId, FSRequest samlRequest, String relayState) {
FSUtils.debug.message("FSServiceManager.getBrowserArtifactHandler: Called");
if ((request == null) || (response == null) || (idpSuccinctId == null) || (samlRequest == null)) {
FSUtils.debug.error("FSServiceManager.getBrowserArtifactHandler: " + FSUtils.bundle.getString("nullInputParameter"));
return null;
}
try {
IDFFMetaManager metaManager = FSUtils.getIDFFMetaManager();
String idpEntityId = metaManager.getEntityIDBySuccinctID(realm, idpSuccinctId);
IDPDescriptorType idpDescriptor = metaManager.getIDPDescriptor(realm, idpEntityId);
if (FSUtils.debug.messageEnabled()) {
FSUtils.debug.message("FSServiceManager.getBrowserArtifactHandler:" + " IDP Id of the provider to communicate: " + idpEntityId);
}
return new FSBrowserArtifactConsumerHandler(request, response, idpDescriptor, idpEntityId, relayState, samlRequest);
} catch (Exception ex) {
FSUtils.debug.error("FSServiceManager.getBrowserArtifactHandler:Exception Occured:", ex);
return null;
}
}
Aggregations