Skip to Content.
Sympa Menu

mace-opensaml-users - org.opensaml.xml.signature.Signer.signObject error behavior

Subject: OpenSAML user discussion

List archive

org.opensaml.xml.signature.Signer.signObject error behavior


Chronological Thread 
  • From:
  • To:
  • Subject: org.opensaml.xml.signature.Signer.signObject error behavior
  • Date: Tue, 12 Feb 2008 09:34:32 -0500 (EST)

Hi -
I was running some tests and noticed that my SAML output was incorrect. I
was able to resolve my issue, but was curious as to why code execution
continued in a error state.
Checking the logs, I saw an error regarding the signature process in
org.opensaml.xml.signature.Signer.signObject. From looking at the source, I
noticed this code just writes the error to the log instead of throwing an
exception to the caller:

lines 77-79 of org.opensaml.xml.signature.Signer.signObject:
} catch (XMLSecurityException e) {
log.error("An error occured computing the digital signature", e);
}

Is this behavior intentional? It seems a bit odd to not alert the caller of
a critical error...

Thanks!
Dave



Archive powered by MHonArc 2.6.16.

Top of Page