Module org.apache.santuario.xmlsec
Class AbstractSignatureReferenceVerifyInputProcessor.InternalSignatureReferenceVerifier
java.lang.Object
org.apache.xml.security.stax.ext.AbstractInputProcessor
org.apache.xml.security.stax.impl.processor.input.AbstractSignatureReferenceVerifyInputProcessor.InternalSignatureReferenceVerifier
- All Implemented Interfaces:
InputProcessor
- Enclosing class:
- AbstractSignatureReferenceVerifyInputProcessor
public class AbstractSignatureReferenceVerifyInputProcessor.InternalSignatureReferenceVerifier
extends AbstractInputProcessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate OutputStreamprivate DigestOutputStreamprivate intprivate booleanprivate ReferenceTypeprivate XMLSecStartElementprivate Transformer -
Constructor Summary
ConstructorsConstructorDescriptionInternalSignatureReferenceVerifier(XMLSecurityProperties securityProperties, InputProcessorChain inputProcessorChain, ReferenceType referenceType, XMLSecStartElement startElement) -
Method Summary
Modifier and TypeMethodDescriptionbuildTransformerChain(ReferenceType referenceType, OutputStream outputStream, InputProcessorChain inputProcessorChain) booleanprocessEvent(InputProcessorChain inputProcessorChain) Will be called from the framework when the next XMLEvent is requestedvoidprocessEvent(XMLSecEvent xmlSecEvent, InputProcessorChain inputProcessorChain) processHeaderEvent(InputProcessorChain inputProcessorChain) Will be called from the framework when the next security-header XMLEvent is requestedvoidsetBufferedDigestOutputStream(OutputStream bufferedDigestOutputStream) voidsetDigestOutputStream(DigestOutputStream digestOutputStream) voidsetFinished(boolean finished) voidsetReferenceType(ReferenceType referenceType) voidsetStartElement(XMLSecStartElement startElement) voidsetTransformer(Transformer transformer) Methods inherited from class org.apache.xml.security.stax.ext.AbstractInputProcessor
addAfterProcessor, addBeforeProcessor, doFinal, getAfterProcessors, getBeforeProcessors, getPhase, getReferenceIDAttribute, getSecurityProperties, setPhase
-
Field Details
-
referenceType
-
transformer
-
digestOutputStream
-
bufferedDigestOutputStream
-
startElementPath
-
startElement
-
elementCounter
private int elementCounter -
finished
private boolean finished
-
-
Constructor Details
-
InternalSignatureReferenceVerifier
public InternalSignatureReferenceVerifier(XMLSecurityProperties securityProperties, InputProcessorChain inputProcessorChain, ReferenceType referenceType, XMLSecStartElement startElement) throws XMLSecurityException - Throws:
XMLSecurityException
-
-
Method Details
-
buildTransformerChain
public Transformer buildTransformerChain(ReferenceType referenceType, OutputStream outputStream, InputProcessorChain inputProcessorChain) throws XMLSecurityException - Throws:
XMLSecurityException
-
processHeaderEvent
public XMLSecEvent processHeaderEvent(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException Description copied from interface:InputProcessorWill be called from the framework when the next security-header XMLEvent is requested- Returns:
- The next XMLSecEvent
- Throws:
XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-
processEvent
public XMLSecEvent processEvent(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException Description copied from interface:InputProcessorWill be called from the framework when the next XMLEvent is requested- Returns:
- The next XMLSecEvent
- Throws:
XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-
processEvent
public void processEvent(XMLSecEvent xmlSecEvent, InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException -
isFinished
public boolean isFinished() -
setFinished
public void setFinished(boolean finished) -
getReferenceType
-
setReferenceType
-
getTransformer
-
setTransformer
-
getDigestOutputStream
-
setDigestOutputStream
-
getBufferedDigestOutputStream
-
setBufferedDigestOutputStream
-
getStartElement
-
setStartElement
-
getStartElementPath
-