public class DefaultValidationFailedHandler extends Object implements ValidationFailedHandler
Constructor and Description |
---|
DefaultValidationFailedHandler() |
Modifier and Type | Method and Description |
---|---|
void |
end() |
boolean |
ignoreCoreValidationFailure()
If true is returned then the verifier will go-on as if there was no validation failure.
|
void |
manifestReferenceValidationFailed(Reference ref) |
Exception |
onXMLSignatureException(XMLSignatureException se)
Method called when an XMLSignatureException is thrown by the method
XMLSignature.validate(javax.xml.crypto.dsig.XMLValidateContext) . |
void |
referenceValidationFailed(Reference ref) |
void |
signatureValueValidationFailed(XMLSignature.SignatureValue value) |
void |
start() |
public Exception onXMLSignatureException(XMLSignatureException se)
ValidationFailedHandler
XMLSignature.validate(javax.xml.crypto.dsig.XMLValidateContext)
.
You can return more specific exceptions which are useful for your use-case.
onXMLSignatureException
in interface ValidationFailedHandler
se
- exceptionpublic void start()
start
in interface ValidationFailedHandler
public void signatureValueValidationFailed(XMLSignature.SignatureValue value) throws Exception
signatureValueValidationFailed
in interface ValidationFailedHandler
Exception
public void referenceValidationFailed(Reference ref) throws Exception
referenceValidationFailed
in interface ValidationFailedHandler
Exception
public void manifestReferenceValidationFailed(Reference ref) throws Exception
manifestReferenceValidationFailed
in interface ValidationFailedHandler
Exception
public void end() throws Exception
end
in interface ValidationFailedHandler
Exception
public boolean ignoreCoreValidationFailure() throws Exception
ValidationFailedHandler
XmlSignatureInvalidException
.
Best practice is to return false
to ensure that after a core validation failure, the verification
fails.
ignoreCoreValidationFailure
in interface ValidationFailedHandler
Exception
Apache Camel