|
|
|
|
|
|
A Digital Signature of a document authenticates the document through two mechanisms, one to sign the document, the other to validate that signature. The validation of an XML Digital signature comprises two phases, reference validation and signature validation, and Sean Mullen has a nice writeup on what to do when one of them fails. |
Sean is the co-lead for the JSR on DSIG and one of the implementors at apache. His example uses the APIs from JWSDP 2.0 which are also in GlassFish.