public void handleStatusResponseType(SAML2HandlerRequest request, SAML2HandlerResponse response) throws ProcessingException { // Handler a log out response from IDP StatusResponseType statusResponseType = (StatusResponseType) request.getSAML2Object(); checkDestination(statusResponseType.getDestination(), getSPConfiguration().getServiceURL()); HTTPContext httpContext = (HTTPContext) request.getContext(); HttpServletRequest servletRequest = httpContext.getRequest(); HttpSession session = servletRequest.getSession(false); // TODO: Deal with partial logout report StatusType statusType = statusResponseType.getStatus(); StatusCodeType statusCode = statusType.getStatusCode(); URI statusCodeValueURI = statusCode.getValue(); boolean success = false; if (statusCodeValueURI != null) { String statusCodeValue = statusCodeValueURI.toString(); if (JBossSAMLURIConstants.STATUS_SUCCESS.get().equals(statusCodeValue)) { success = true; session.invalidate(); } } }
public void handleStatusResponseType(SAML2HandlerRequest request, SAML2HandlerResponse response) throws ProcessingException { // Handler a log out response from IDP StatusResponseType statusResponseType = (StatusResponseType) request.getSAML2Object(); checkDestination(statusResponseType.getDestination(), getSPConfiguration().getServiceURL()); HTTPContext httpContext = (HTTPContext) request.getContext(); HttpServletRequest servletRequest = httpContext.getRequest(); HttpSession session = servletRequest.getSession(false); // TODO: Deal with partial logout report StatusType statusType = statusResponseType.getStatus(); StatusCodeType statusCode = statusType.getStatusCode(); URI statusCodeValueURI = statusCode.getValue(); boolean success = false; if (statusCodeValueURI != null) { String statusCodeValue = statusCodeValueURI.toString(); if (JBossSAMLURIConstants.STATUS_SUCCESS.get().equals(statusCodeValue)) { success = true; session.invalidate(); } } }
public StatusResponseType(StatusResponseType srt) { this(srt.getID(), srt.getIssueInstant()); this.issuer = srt.getIssuer(); this.signature = srt.getSignature(); this.extensions = srt.getExtensions(); this.status = srt.getStatus(); this.inResponseTo = srt.getInResponseTo(); this.destination = srt.getDestination(); this.consent = srt.getConsent(); }
public StatusResponseType(StatusResponseType srt) { this(srt.getID(), srt.getIssueInstant()); this.issuer = srt.getIssuer(); this.signature = srt.getSignature(); this.extensions = srt.getExtensions(); this.status = srt.getStatus(); this.inResponseTo = srt.getInResponseTo(); this.destination = srt.getDestination(); this.consent = srt.getConsent(); }
public StatusResponseType(StatusResponseType srt) { this(srt.getID(), srt.getIssueInstant()); this.issuer = srt.getIssuer(); this.signature = srt.getSignature(); this.extensions = srt.getExtensions(); this.status = srt.getStatus(); this.inResponseTo = srt.getInResponseTo(); this.destination = srt.getDestination(); this.consent = srt.getConsent(); }
public StatusResponseType(StatusResponseType srt) { this(srt.getID(), srt.getIssueInstant()); this.issuer = srt.getIssuer(); this.signature = srt.getSignature(); this.extensions = srt.getExtensions(); this.status = srt.getStatus(); this.inResponseTo = srt.getInResponseTo(); this.destination = srt.getDestination(); this.consent = srt.getConsent(); }
StatusResponseType statusResponseType = (StatusResponseType) samlObject; checkDestination(statusResponseType.getDestination(), getProviderconfig().getIdentityURL());
StatusResponseType statusResponseType = (StatusResponseType) samlObject; checkDestination(statusResponseType.getDestination(), getProviderconfig().getIdentityURL());
/** * Write the common attributes for all response types * @param statusResponse * @throws ProcessingException */ private void writeBaseAttributes(StatusResponseType statusResponse) throws ProcessingException { //Attributes StaxUtil.writeAttribute(writer, JBossSAMLConstants.ID.get(), statusResponse.getID()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.VERSION.get(), statusResponse.getVersion()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.ISSUE_INSTANT.get(), statusResponse.getIssueInstant() .toString()); String destination = statusResponse.getDestination(); if (StringUtil.isNotNull(destination)) StaxUtil.writeAttribute(writer, JBossSAMLConstants.DESTINATION.get(), destination); String consent = statusResponse.getConsent(); if (StringUtil.isNotNull(consent)) StaxUtil.writeAttribute(writer, JBossSAMLConstants.CONSENT.get(), consent); String inResponseTo = statusResponse.getInResponseTo(); if (StringUtil.isNotNull(inResponseTo)) StaxUtil.writeAttribute(writer, JBossSAMLConstants.IN_RESPONSE_TO.get(), inResponseTo); } }
/** * Write the common attributes for all response types * * @param statusResponse * @throws ProcessingException */ private void writeBaseAttributes(StatusResponseType statusResponse) throws ProcessingException { // Attributes StaxUtil.writeAttribute(writer, JBossSAMLConstants.ID.get(), statusResponse.getID()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.VERSION.get(), statusResponse.getVersion()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.ISSUE_INSTANT.get(), statusResponse.getIssueInstant().toString()); String destination = statusResponse.getDestination(); if (StringUtil.isNotNull(destination)) StaxUtil.writeAttribute(writer, JBossSAMLConstants.DESTINATION.get(), destination); String consent = statusResponse.getConsent(); if (StringUtil.isNotNull(consent)) StaxUtil.writeAttribute(writer, JBossSAMLConstants.CONSENT.get(), consent); String inResponseTo = statusResponse.getInResponseTo(); if (StringUtil.isNotNull(inResponseTo)) StaxUtil.writeAttribute(writer, JBossSAMLConstants.IN_RESPONSE_TO.get(), inResponseTo); } }
/** * Write the common attributes for all response types * * @param statusResponse * * @throws ProcessingException */ private void writeBaseAttributes(StatusResponseType statusResponse) throws ProcessingException { // Attributes StaxUtil.writeAttribute(writer, JBossSAMLConstants.ID.get(), statusResponse.getID()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.VERSION.get(), statusResponse.getVersion()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.ISSUE_INSTANT.get(), statusResponse.getIssueInstant().toString()); String destination = statusResponse.getDestination(); if (StringUtil.isNotNull(destination)) StaxUtil.writeAttribute(writer, JBossSAMLConstants.DESTINATION.get(), destination); String consent = statusResponse.getConsent(); if (StringUtil.isNotNull(consent)) StaxUtil.writeAttribute(writer, JBossSAMLConstants.CONSENT.get(), consent); String inResponseTo = statusResponse.getInResponseTo(); if (StringUtil.isNotNull(inResponseTo)) StaxUtil.writeAttribute(writer, JBossSAMLConstants.IN_RESPONSE_TO.get(), inResponseTo); } }
/** * Write the common attributes for all response types * @param statusResponse * @throws ProcessingException */ private void writeBaseAttributes(StatusResponseType statusResponse) throws ProcessingException { //Attributes StaxUtil.writeAttribute(writer, JBossSAMLConstants.ID.get(), statusResponse.getID()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.VERSION.get(), statusResponse.getVersion()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.ISSUE_INSTANT.get(), statusResponse.getIssueInstant() .toString()); String destination = statusResponse.getDestination(); if (StringUtil.isNotNull(destination)) StaxUtil.writeAttribute(writer, JBossSAMLConstants.DESTINATION.get(), destination); String consent = statusResponse.getConsent(); if (StringUtil.isNotNull(consent)) StaxUtil.writeAttribute(writer, JBossSAMLConstants.CONSENT.get(), consent); String inResponseTo = statusResponse.getInResponseTo(); if (StringUtil.isNotNull(inResponseTo)) StaxUtil.writeAttribute(writer, JBossSAMLConstants.IN_RESPONSE_TO.get(), inResponseTo); } }
/** * Write the common attributes for all response types * * @param statusResponse * * @throws ProcessingException */ private void writeBaseAttributes(StatusResponseType statusResponse) throws ProcessingException { // Attributes StaxUtil.writeAttribute(writer, JBossSAMLConstants.ID.get(), statusResponse.getID()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.VERSION.get(), statusResponse.getVersion()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.ISSUE_INSTANT.get(), statusResponse.getIssueInstant().toString()); String destination = statusResponse.getDestination(); if (StringUtil.isNotNull(destination)) StaxUtil.writeAttribute(writer, JBossSAMLConstants.DESTINATION.get(), destination); String consent = statusResponse.getConsent(); if (StringUtil.isNotNull(consent)) StaxUtil.writeAttribute(writer, JBossSAMLConstants.CONSENT.get(), consent); String inResponseTo = statusResponse.getInResponseTo(); if (StringUtil.isNotNull(inResponseTo)) StaxUtil.writeAttribute(writer, JBossSAMLConstants.IN_RESPONSE_TO.get(), inResponseTo); } }