/** {@inheritDoc} */ protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException { AssertionArtifact assertionArtifact = (AssertionArtifact) samlObject; if (assertionArtifact.getAssertionArtifact() != null) { XMLHelper.appendTextContent(domElement, assertionArtifact.getAssertionArtifact()); } } }
/** {@inheritDoc} */ protected void processElementContent(XMLObject samlObject, String elementContent) { AssertionArtifact assertionArtifact = (AssertionArtifact) samlObject; assertionArtifact.setAssertionArtifact(elementContent); } }
/** * Extract the issuer, and populate message context, as the relying party corresponding to the first * AssertionArtifact in the message. * * @param messageContext current message context * @param artifacts AssertionArtifacts in the request */ protected void extractAssertionArtifactInfo(SAMLMessageContext messageContext, List<AssertionArtifact> artifacts) { if (artifacts.size() == 0) { return; } log.debug("Attempting to extract issuer based on first AssertionArtifact in request"); AssertionArtifact artifact = artifacts.get(0); SAMLArtifactMapEntry artifactEntry = artifactMap.get(artifact.getAssertionArtifact()); messageContext.setInboundMessageIssuer(artifactEntry.getRelyingPartyId()); log.debug("Extracted issuer from SAML 1.x AssertionArtifact: {}", messageContext.getInboundMessageIssuer()); }