Class WSSSignatureReferenceVerifyInputProcessor

  • All Implemented Interfaces:
    org.apache.xml.security.stax.ext.InputProcessor

    public class WSSSignatureReferenceVerifyInputProcessor
    extends org.apache.xml.security.stax.impl.processor.input.AbstractSignatureReferenceVerifyInputProcessor
    • Field Summary

      • Fields inherited from class org.apache.xml.security.stax.impl.processor.input.AbstractSignatureReferenceVerifyInputProcessor

        allowNotSameDocumentReferences, doNotThrowExceptionForManifests, maximumAllowedReferencesPerManifest, maximumAllowedTransformsPerReference
    • Constructor Summary

      Constructors 
      Constructor Description
      WSSSignatureReferenceVerifyInputProcessor​(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain, org.apache.xml.security.binding.xmldsig.SignatureType signatureType, org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken, org.apache.xml.security.stax.ext.XMLSecurityProperties securityProperties)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.xml.security.stax.ext.Transformer buildTransformerChain​(org.apache.xml.security.binding.xmldsig.ReferenceType referenceType, OutputStream outputStream, org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain, org.apache.xml.security.stax.impl.processor.input.AbstractSignatureReferenceVerifyInputProcessor.InternalSignatureReferenceVerifier internalSignatureReferenceVerifier)  
      protected org.apache.wss4j.stax.impl.processor.input.WSSSignatureReferenceVerifyInputProcessor.InternalSignatureReferenceVerifier getSignatureReferenceVerifier​(org.apache.xml.security.stax.ext.XMLSecurityProperties securityProperties, org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain, org.apache.xml.security.binding.xmldsig.ReferenceType referenceType, org.apache.xml.security.stax.ext.stax.XMLSecStartElement startElement)  
      protected void processElementPath​(List<QName> elementPath, org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain, org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent, org.apache.xml.security.binding.xmldsig.ReferenceType referenceType)  
      org.apache.xml.security.stax.ext.stax.XMLSecEvent processEvent​(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain)  
      protected void verifyExternalReference​(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain, InputStream inputStream, org.apache.xml.security.binding.xmldsig.ReferenceType referenceType)  
      • Methods inherited from class org.apache.xml.security.stax.impl.processor.input.AbstractSignatureReferenceVerifyInputProcessor

        compareDigest, createMessageDigestOutputStream, doFinal, getInboundSecurityToken, getProcessedReferences, getSignatureType, processHeaderEvent, resolvesResource
      • Methods inherited from class org.apache.xml.security.stax.ext.AbstractInputProcessor

        addAfterProcessor, addBeforeProcessor, getAfterProcessors, getBeforeProcessors, getPhase, getReferenceIDAttribute, getSecurityProperties, setPhase
    • Constructor Detail

      • WSSSignatureReferenceVerifyInputProcessor

        public WSSSignatureReferenceVerifyInputProcessor​(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain,
                                                         org.apache.xml.security.binding.xmldsig.SignatureType signatureType,
                                                         org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken,
                                                         org.apache.xml.security.stax.ext.XMLSecurityProperties securityProperties)
                                                  throws org.apache.xml.security.exceptions.XMLSecurityException
        Throws:
        org.apache.xml.security.exceptions.XMLSecurityException
    • Method Detail

      • verifyExternalReference

        protected void verifyExternalReference​(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain,
                                               InputStream inputStream,
                                               org.apache.xml.security.binding.xmldsig.ReferenceType referenceType)
                                        throws org.apache.xml.security.exceptions.XMLSecurityException,
                                               XMLStreamException
        Overrides:
        verifyExternalReference in class org.apache.xml.security.stax.impl.processor.input.AbstractSignatureReferenceVerifyInputProcessor
        Throws:
        org.apache.xml.security.exceptions.XMLSecurityException
        XMLStreamException
      • processEvent

        public org.apache.xml.security.stax.ext.stax.XMLSecEvent processEvent​(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain)
                                                                       throws XMLStreamException,
                                                                              org.apache.xml.security.exceptions.XMLSecurityException
        Specified by:
        processEvent in interface org.apache.xml.security.stax.ext.InputProcessor
        Overrides:
        processEvent in class org.apache.xml.security.stax.impl.processor.input.AbstractSignatureReferenceVerifyInputProcessor
        Throws:
        XMLStreamException
        org.apache.xml.security.exceptions.XMLSecurityException
      • processElementPath

        protected void processElementPath​(List<QName> elementPath,
                                          org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain,
                                          org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent,
                                          org.apache.xml.security.binding.xmldsig.ReferenceType referenceType)
                                   throws org.apache.xml.security.exceptions.XMLSecurityException
        Specified by:
        processElementPath in class org.apache.xml.security.stax.impl.processor.input.AbstractSignatureReferenceVerifyInputProcessor
        Throws:
        org.apache.xml.security.exceptions.XMLSecurityException
      • getSignatureReferenceVerifier

        protected org.apache.wss4j.stax.impl.processor.input.WSSSignatureReferenceVerifyInputProcessor.InternalSignatureReferenceVerifier getSignatureReferenceVerifier​(org.apache.xml.security.stax.ext.XMLSecurityProperties securityProperties,
                                                                                                                                                                        org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain,
                                                                                                                                                                        org.apache.xml.security.binding.xmldsig.ReferenceType referenceType,
                                                                                                                                                                        org.apache.xml.security.stax.ext.stax.XMLSecStartElement startElement)
                                                                                                                                                                 throws org.apache.xml.security.exceptions.XMLSecurityException
        Overrides:
        getSignatureReferenceVerifier in class org.apache.xml.security.stax.impl.processor.input.AbstractSignatureReferenceVerifyInputProcessor
        Throws:
        org.apache.xml.security.exceptions.XMLSecurityException
      • buildTransformerChain

        protected org.apache.xml.security.stax.ext.Transformer buildTransformerChain​(org.apache.xml.security.binding.xmldsig.ReferenceType referenceType,
                                                                                     OutputStream outputStream,
                                                                                     org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain,
                                                                                     org.apache.xml.security.stax.impl.processor.input.AbstractSignatureReferenceVerifyInputProcessor.InternalSignatureReferenceVerifier internalSignatureReferenceVerifier)
                                                                              throws org.apache.xml.security.exceptions.XMLSecurityException
        Overrides:
        buildTransformerChain in class org.apache.xml.security.stax.impl.processor.input.AbstractSignatureReferenceVerifyInputProcessor
        Throws:
        org.apache.xml.security.exceptions.XMLSecurityException