Class XmlVerifierProcessor
- java.lang.Object
-
- org.apache.camel.component.xmlsecurity.processor.XmlSignatureProcessor
-
- org.apache.camel.component.xmlsecurity.processor.XmlVerifierProcessor
-
- All Implemented Interfaces:
org.apache.camel.Processor
public class XmlVerifierProcessor extends XmlSignatureProcessor
XML signature verifier. Assumes that the input XML contains exactly one Signature element.
-
-
Field Summary
-
Fields inherited from class org.apache.camel.component.xmlsecurity.processor.XmlSignatureProcessor
context
-
-
Constructor Summary
Constructors Constructor Description XmlVerifierProcessor(org.apache.camel.CamelContext context, XmlVerifierConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlVerifierConfigurationgetConfiguration()protected booleanhandleSignatureValidationFailed(DOMValidateContext valContext, XMLSignature signature)protected DocumentparseInput(InputStream is, org.apache.camel.Message message)voidprocess(org.apache.camel.Exchange exchange)protected voidverify(InputStream input, org.apache.camel.Message out)-
Methods inherited from class org.apache.camel.component.xmlsecurity.processor.XmlSignatureProcessor
clearMessageHeaders, getCamelContext, getSchema, getSchemaResourceUri, setCryptoContextProperties
-
-
-
-
Constructor Detail
-
XmlVerifierProcessor
public XmlVerifierProcessor(org.apache.camel.CamelContext context, XmlVerifierConfiguration config)
-
-
Method Detail
-
getConfiguration
public XmlVerifierConfiguration getConfiguration()
- Specified by:
getConfigurationin classXmlSignatureProcessor
-
verify
protected void verify(InputStream input, org.apache.camel.Message out) throws Exception
- Throws:
Exception
-
handleSignatureValidationFailed
protected boolean handleSignatureValidationFailed(DOMValidateContext valContext, XMLSignature signature) throws Exception
- Throws:
Exception
-
parseInput
protected Document parseInput(InputStream is, org.apache.camel.Message message) throws Exception
- Throws:
Exception
-
-