Class EncryptOutputProcessor

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

    public class EncryptOutputProcessor
    extends org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor
    Processor to encrypt XML structures
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor

        org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor, org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor.CharacterEventGeneratorOutputStream
    • Field Summary

      • Fields inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor

        action, actionOrder, securityProperties
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doFinalInternal​(org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain)  
      void init​(org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain)  
      void processEvent​(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent, org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain)  
      protected org.apache.xml.security.stax.ext.SecurePart securePartMatches​(org.apache.xml.security.stax.ext.stax.XMLSecStartElement xmlSecStartElement, Map<Object,​org.apache.xml.security.stax.ext.SecurePart> secureParts)  
      protected void setupAttachmentEncryptionStreams​(org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain)  
      • Methods inherited from class org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor

        doFinal, getActiveInternalEncryptionOutputProcessor, setActiveInternalEncryptionOutputProcessor, verifyEncryptionParts
      • Methods inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor

        addAfterProcessor, addAttributes, addBeforeProcessor, createAttribute, createCharacters, createCharacters, createCharactersAndOutputAsEvent, createCharactersAndOutputAsEvent, createEndElement, createEndElementAndOutputAsEvent, createNamespace, createStartElementAndOutputAsEvent, createStartElementAndOutputAsEvent, getAction, getActionOrder, getAfterProcessors, getBeforeProcessors, getPhase, getSecurityProperties, outputAsEvent, outputDOMElement, securePartMatches, setAction, setPhase, setXMLSecurityProperties
    • Constructor Detail

      • EncryptOutputProcessor

        public EncryptOutputProcessor()
                               throws org.apache.xml.security.exceptions.XMLSecurityException
        Throws:
        org.apache.xml.security.exceptions.XMLSecurityException
    • Method Detail

      • init

        public void init​(org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain)
                  throws org.apache.xml.security.exceptions.XMLSecurityException
        Specified by:
        init in interface org.apache.xml.security.stax.ext.OutputProcessor
        Overrides:
        init in class org.apache.xml.security.stax.ext.AbstractOutputProcessor
        Throws:
        org.apache.xml.security.exceptions.XMLSecurityException
      • processEvent

        public void processEvent​(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent,
                                 org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain)
                          throws XMLStreamException,
                                 org.apache.xml.security.exceptions.XMLSecurityException
        Specified by:
        processEvent in interface org.apache.xml.security.stax.ext.OutputProcessor
        Specified by:
        processEvent in class org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor
        Throws:
        XMLStreamException
        org.apache.xml.security.exceptions.XMLSecurityException
      • securePartMatches

        protected org.apache.xml.security.stax.ext.SecurePart securePartMatches​(org.apache.xml.security.stax.ext.stax.XMLSecStartElement xmlSecStartElement,
                                                                                Map<Object,​org.apache.xml.security.stax.ext.SecurePart> secureParts)
        Overrides:
        securePartMatches in class org.apache.xml.security.stax.ext.AbstractOutputProcessor
      • doFinalInternal

        public void doFinalInternal​(org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain)
                             throws org.apache.xml.security.exceptions.XMLSecurityException
        Overrides:
        doFinalInternal in class org.apache.xml.security.stax.impl.processor.output.AbstractEncryptOutputProcessor
        Throws:
        org.apache.xml.security.exceptions.XMLSecurityException
      • setupAttachmentEncryptionStreams

        protected void setupAttachmentEncryptionStreams​(org.apache.xml.security.stax.ext.OutputProcessorChain outputProcessorChain)
                                                 throws org.apache.xml.security.exceptions.XMLSecurityException
        Throws:
        org.apache.xml.security.exceptions.XMLSecurityException