/** * Sets the destination attribute on the outbound message if it is a * {@link org.opensaml.saml.saml1.core.ResponseAbstractType} message. * * @param outboundMessage outbound SAML message * @param endpointURL destination endpoint */ public static void setSAML1ResponseRecipient(@Nonnull final SAMLObject outboundMessage, @Nonnull @NotEmpty final String endpointURL) { if (outboundMessage instanceof org.opensaml.saml.saml1.core.ResponseAbstractType) { ((org.opensaml.saml.saml1.core.ResponseAbstractType) outboundMessage).setRecipient(endpointURL); } }
response.setRecipient(attribute.getValue()); } else { super.processAttribute(samlObject, attribute);