How to inject/add a signed SAML Assertion into a Response?
o haya
ohaya at yahoo.com
Sat Feb 16 03:13:01 EST 2019
Hi,
I think that I just figured out how to do this. This seems to work:
resp.getAssertions().add(assertion);
Thanks,
Jim
--------------------------------------------
On Sat, 2/16/19, o haya <ohaya at yahoo.com> wrote:
Subject: How to inject/add a signed SAML Assertion into a Response?
To: "dev at shibboleth.net" <dev at shibboleth.net>
Cc: "Ohaya" <ohaya at yahoo.com>
Date: Saturday, February 16, 2019, 2:56 AM
Hi,
I have an Assertion (named
'assertion') containing a signed SAML assertion that
my code has constructed, and also, separately, a Response
(org.opensaml.saml2.core.Response) object (named
'resp') that I created using:
Response resp = (Response)
Configuration.getBuilderFactory().getBuilder(Response.DEFAULT_ELEMENT_NAME).buildObject(Response.DEFAULT_ELEMENT_NAME);
How can I inject the
Assertion into the Response?
Thanks,Jim
More information about the dev
mailing list