org.apache.camel.component.xmlsecurity.processor
Class XmlVerifierProcessor

java.lang.Object
  extended by org.apache.camel.component.xmlsecurity.processor.XmlSignatureProcessor
      extended by 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.


Constructor Summary
XmlVerifierProcessor(XmlVerifierConfiguration config)
           
 
Method Summary
 XmlVerifierConfiguration getConfiguration()
           
protected  boolean handleSignatureValidationFailed(DOMValidateContext valContext, XMLSignature signature)
           
protected  Document parseInput(InputStream is)
           
 void process(org.apache.camel.Exchange exchange)
           
protected  void verify(InputStream input, org.apache.camel.Message out)
           
 
Methods inherited from class org.apache.camel.component.xmlsecurity.processor.XmlSignatureProcessor
clearMessageHeaders, setCryptoContextProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlVerifierProcessor

public XmlVerifierProcessor(XmlVerifierConfiguration config)
Method Detail

getConfiguration

public XmlVerifierConfiguration getConfiguration()
Specified by:
getConfiguration in class XmlSignatureProcessor

process

public void process(org.apache.camel.Exchange exchange)
             throws Exception
Throws:
Exception

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)
                       throws XmlSignatureFormatException,
                              ParserConfigurationException,
                              IOException
Throws:
XmlSignatureFormatException
ParserConfigurationException
IOException


Apache Camel