Interface XMLSignatureValidator
- All Superinterfaces:
SignatureValidator<Document>
- All Known Implementing Classes:
DefaultXMLSignatureValidator
Specialization of the
SignatureValidator
for validation of XML signatures.- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Method Summary
Modifier and TypeMethodDescriptionvalidate
(Document document, XMLSignatureLocation signatureLocation) Validates the signature(s) of supplied document.Methods inherited from interface se.idsec.signservice.security.sign.SignatureValidator
getCertificateValidator, getRequiredSignerCertificates, isSigned, validate
-
Method Details
-
validate
List<SignatureValidationResult> validate(Document document, XMLSignatureLocation signatureLocation) throws SignatureException Validates the signature(s) of supplied document.If the
signatureLocation
parameter is non null only that signature of the document will be validated, even if there are more signatures.- Parameters:
document
- the document to validatesignatureLocation
- tells where the signature can be found- Returns:
- a validation result containing the details from a signature validation
- Throws:
SignatureException
- for errors during the validation process (pure signature validation errors are reported in the returned result)
-