OpenSAML2 Problem with Signing an Assertion (does not verify)

Johannes Frey weblinux.de at googlemail.com
Wed Feb 15 08:53:15 GMT 2012


Hi, 

Thanks for your Suggestion. I changed it but it still does not verify...:-(

So there has to be one more problem

Thanks and regards
Johannes

Von meinem iPhone gesendet

Am 15.02.2012 um 09:38 schrieb Brent Putman <putmanb at georgetown.edu>:

> 
> 
> On 2/15/12 3:11 AM, Johannes Frey wrote:
>> 
>> 
>>    public String toString() {
>>        Element saml;
>>        String samlDocument = null;
>>        setRightAssertion();
>>        try {
>>            saml = marshallResponse();
>>            samlDocument = XMLHelper.prettyPrintXML(saml);
>> 
> 
> The error is here.  Serializing the DOM element with the pretty print
> method introduces additional whitespace, which corrupts your document
> and means that the signature is no longer valid.  It's only for use in
> printing out nice human-readable indented XML.  For the actual
> operational message, serialize instead with the
> XMLHelper.nodeToString(Node node) method, which doesn't modify the
> source DOM.
> --
> To unsubscribe from this list send an email to dev-unsubscribe at shibboleth.net


More information about the dev mailing list