[openSAML] How to convert a <Response> string to a Response object
Yaowen Tu
yaowen.tu at gmail.com
Thu Jul 26 14:59:44 EDT 2012
Is this the correct place to ask this question?
I am using openSAML to build a simple SP.
I know in a standard way, we use this to get the Response object:
BasicSAMLMessageContext messageContext = new
BasicSAMLMessageContext();
messageContext.setInboundMessageTransport( new
HttpServletRequestAdapter(request) );
HTTPPostDecoder decoder = new HTTPPostDecoder();
decoder.decode( messageContext );
Response rsp = (Response) context.getInboundMessage();
Suppose now I don't have the HttpServletRequest. What I have is plain XML
string like:
<samlp:Response Destination="...">
<saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
</saml:Issuer>
...
...
</smalp:Response>
What method should I call the parse this XML string into Response object?
Best,
Yaowen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/dev/attachments/20120726/667259ef/attachment.html
More information about the dev
mailing list