protected void sendErrorResponseToSP(String referrer, HttpServletResponse response, String relayState, IDPWebRequestUtil webRequestUtil) throws ServletException, IOException, ConfigurationException { if (trace) log.trace("About to send error response to SP:" + referrer); Document samlResponse = webRequestUtil.getErrorResponse(referrer, JBossSAMLURIConstants.STATUS_RESPONDER.get(), this.identityURL, this.signOutgoingMessages); try { WebRequestUtilHolder holder = webRequestUtil.getHolder(); holder.setResponseDoc(samlResponse).setDestination(referrer).setRelayState(relayState) .setAreWeSendingRequest(false).setPrivateKey(null).setSupportSignature(false).setServletResponse(response); holder.setPostBindingRequested(true); if (this.signOutgoingMessages) { holder.setPrivateKey(keyManager.getSigningKey()).setSupportSignature(true); } if (strictPostBinding) holder.setStrictPostBinding(true); webRequestUtil.send(holder); } catch (ParsingException e1) { throw new ServletException(e1); } catch (GeneralSecurityException e) { throw new ServletException(e); } }
protected void sendErrorResponseToSP(String referrer, HttpServletResponse response, String relayState, IDPWebRequestUtil webRequestUtil) throws ServletException, IOException, ConfigurationException { if (trace) log.trace("About to send error response to SP:" + referrer); Document samlResponse = webRequestUtil.getErrorResponse(referrer, JBossSAMLURIConstants.STATUS_RESPONDER.get(), this.identityURL, this.signOutgoingMessages); try { WebRequestUtilHolder holder = webRequestUtil.getHolder(); holder.setResponseDoc(samlResponse).setDestination(referrer).setRelayState(relayState) .setAreWeSendingRequest(false).setPrivateKey(null).setSupportSignature(false).setServletResponse(response); holder.setPostBindingRequested(true); if (this.signOutgoingMessages) { holder.setPrivateKey(keyManager.getSigningKey()).setSupportSignature(true); } if (strictPostBinding) holder.setStrictPostBinding(true); webRequestUtil.send(holder); } catch (ParsingException e1) { throw new ServletException(e1); } catch (GeneralSecurityException e) { throw new ServletException(e); } }
protected void sendErrorResponseToSP(String referrer, HttpServletResponse response, String relayState, IDPWebRequestUtil webRequestUtil) throws ServletException, IOException, ConfigurationException { if (trace) log.trace("About to send error response to SP:" + referrer); Document samlResponse = webRequestUtil.getErrorResponse(referrer, JBossSAMLURIConstants.STATUS_RESPONDER.get(), this.identityURL, this.signOutgoingMessages); try { WebRequestUtilHolder holder = webRequestUtil.getHolder(); holder.setResponseDoc(samlResponse).setDestination(referrer).setRelayState(relayState) .setAreWeSendingRequest(false).setPrivateKey(null).setSupportSignature(false).setServletResponse(response); holder.setPostBindingRequested(true); if (this.signOutgoingMessages) { holder.setPrivateKey(keyManager.getSigningKey()).setSupportSignature(true); } if (strictPostBinding) holder.setStrictPostBinding(true); webRequestUtil.send(holder); } catch (ParsingException e1) { throw new ServletException(e1); } catch (GeneralSecurityException e) { throw new ServletException(e); } }
webRequestUtil.send(holder);
webRequestUtil.send(holder);
webRequestUtil.send(holder); } catch (GeneralSecurityException e) { logger.samlIDPHandlingSAML11Error(e);
webRequestUtil.send(holder); } catch (GeneralSecurityException e) { logger.samlIDPHandlingSAML11Error(e);
webRequestUtil.send(holder); } catch (GeneralSecurityException e) { throw new ServletException(e);
webRequestUtil.send(holder); } catch (GeneralSecurityException e) { throw new ServletException(e);
protected void sendErrorResponseToSP(String referrer, HttpServletResponse response, String relayState, IDPWebRequestUtil webRequestUtil) throws ServletException, IOException, ConfigurationException { logger.trace("About to send error response to SP:" + referrer); String contextPath = servletContext.getContextPath(); Document samlResponse = webRequestUtil.getErrorResponse(referrer, JBossSAMLURIConstants.STATUS_RESPONDER.get(), getIdentityURL(), this.idpConfiguration.isSupportsSignature()); try { IDPWebRequestUtil.WebRequestUtilHolder holder = webRequestUtil.getHolder(); holder.setResponseDoc(samlResponse).setDestination(referrer).setRelayState(relayState) .setAreWeSendingRequest(false).setPrivateKey(null).setSupportSignature(false).setServletResponse(response); holder.setPostBindingRequested(webRequestUtil.hasSAMLRequestInPostProfile()); if (this.idpConfiguration.isSupportsSignature()) { holder.setPrivateKey(keyManager.getSigningKey()).setSupportSignature(true); } holder.setStrictPostBinding(this.idpConfiguration.isStrictPostBinding()); if (enableAudit) { PicketLinkAuditEvent auditEvent = new PicketLinkAuditEvent(AuditLevel.INFO); auditEvent.setType(PicketLinkAuditEventType.ERROR_RESPONSE_TO_SP); auditEvent.setWhoIsAuditing(contextPath); auditEvent.setDestination(referrer); auditHelper.audit(auditEvent); } webRequestUtil.send(holder); } catch (ParsingException e1) { throw new ServletException(e1); } catch (GeneralSecurityException e) { throw new ServletException(e); } }
protected void sendErrorResponseToSP(String referrer, HttpServletResponse response, String relayState, IDPWebRequestUtil webRequestUtil) throws ServletException, IOException, ConfigurationException { logger.trace("About to send error response to SP:" + referrer); String contextPath = servletContext.getContextPath(); Document samlResponse = webRequestUtil.getErrorResponse(referrer, JBossSAMLURIConstants.STATUS_RESPONDER.get(), getIdentityURL(), this.idpConfiguration.isSupportsSignature()); try { IDPWebRequestUtil.WebRequestUtilHolder holder = webRequestUtil.getHolder(); holder.setResponseDoc(samlResponse).setDestination(referrer).setRelayState(relayState) .setAreWeSendingRequest(false).setPrivateKey(null).setSupportSignature(false).setServletResponse(response); holder.setPostBindingRequested(webRequestUtil.hasSAMLRequestInPostProfile()); if (this.idpConfiguration.isSupportsSignature()) { holder.setPrivateKey(keyManager.getSigningKey()).setSupportSignature(true); } holder.setStrictPostBinding(this.idpConfiguration.isStrictPostBinding()); if (enableAudit) { PicketLinkAuditEvent auditEvent = new PicketLinkAuditEvent(AuditLevel.INFO); auditEvent.setType(PicketLinkAuditEventType.ERROR_RESPONSE_TO_SP); auditEvent.setWhoIsAuditing(contextPath); auditEvent.setDestination(referrer); auditHelper.audit(auditEvent); } webRequestUtil.send(holder); } catch (ParsingException e1) { throw new ServletException(e1); } catch (GeneralSecurityException e) { throw new ServletException(e); } }
auditHelper.audit(auditEvent); webRequestUtil.send(holder); } catch (ParsingException e1) { throw new ServletException(e1);
auditHelper.audit(auditEvent); webRequestUtil.send(holder); } catch (ParsingException e1) { throw new ServletException(e1);
auditHelper.audit(auditEvent); webRequestUtil.send(holder); } catch (ParsingException e1) { throw new ServletException(e1);
webRequestUtil.send(holder); } catch (GeneralSecurityException e) { logger.samlIDPHandlingSAML11Error(e);
webRequestUtil.send(holder); } catch (GeneralSecurityException e) { logger.samlIDPHandlingSAML11Error(e);
webRequestUtil.send(holder); } catch (GeneralSecurityException e) { logger.samlIDPHandlingSAML11Error(e);
webRequestUtil.send(holder); } catch (GeneralSecurityException e) { throw new ServletException(e);
webRequestUtil.send(holder); } catch (GeneralSecurityException e) { throw new ServletException(e);
webRequestUtil.send(holder); } catch (GeneralSecurityException e) { throw new ServletException(e);