|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.component.xmlsecurity.api.DefaultValidationFailedHandler
public class DefaultValidationFailedHandler
Interrupts the validation by throwing an exception as soon as a validation failure occurs and gives specific error messages.
Constructor Summary | |
---|---|
DefaultValidationFailedHandler()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultValidationFailedHandler()
Method Detail |
---|
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
- exception
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |