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
Fields Modifier and Type Field Description private java.io.OutputStream
bufferedDigestOutputStream
private DigestOutputStream
digestOutputStream
private int
elementCounter
private boolean
finished
private ReferenceType
referenceType
private XMLSecStartElement
startElement
private java.util.List<javax.xml.namespace.QName>
startElementPath
private Transformer
transformer
-
Constructor Summary
Constructors Constructor Description InternalSignatureReferenceVerifier(XMLSecurityProperties securityProperties, InputProcessorChain inputProcessorChain, ReferenceType referenceType, XMLSecStartElement startElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Transformer
buildTransformerChain(ReferenceType referenceType, java.io.OutputStream outputStream, InputProcessorChain inputProcessorChain)
java.io.OutputStream
getBufferedDigestOutputStream()
DigestOutputStream
getDigestOutputStream()
ReferenceType
getReferenceType()
XMLSecStartElement
getStartElement()
java.util.List<javax.xml.namespace.QName>
getStartElementPath()
Transformer
getTransformer()
boolean
isFinished()
void
processEvent(XMLSecEvent xmlSecEvent, InputProcessorChain inputProcessorChain)
XMLSecEvent
processNextEvent(InputProcessorChain inputProcessorChain)
Will be called from the framework when the next XMLEvent is requestedXMLSecEvent
processNextHeaderEvent(InputProcessorChain inputProcessorChain)
Will be called from the framework when the next security-header XMLEvent is requestedvoid
setBufferedDigestOutputStream(java.io.OutputStream bufferedDigestOutputStream)
void
setDigestOutputStream(DigestOutputStream digestOutputStream)
void
setFinished(boolean finished)
void
setReferenceType(ReferenceType referenceType)
void
setStartElement(XMLSecStartElement startElement)
void
setTransformer(Transformer transformer)
-
Methods inherited from class org.apache.xml.security.stax.ext.AbstractInputProcessor
addAfterProcessor, addBeforeProcessor, doFinal, getAfterProcessors, getBeforeProcessors, getPhase, getReferenceIDAttribute, getSecurityProperties, setPhase
-
-
-
-
Field Detail
-
referenceType
private ReferenceType referenceType
-
transformer
private Transformer transformer
-
digestOutputStream
private DigestOutputStream digestOutputStream
-
bufferedDigestOutputStream
private java.io.OutputStream bufferedDigestOutputStream
-
startElementPath
private java.util.List<javax.xml.namespace.QName> startElementPath
-
startElement
private XMLSecStartElement startElement
-
elementCounter
private int elementCounter
-
finished
private boolean finished
-
-
Constructor Detail
-
InternalSignatureReferenceVerifier
public InternalSignatureReferenceVerifier(XMLSecurityProperties securityProperties, InputProcessorChain inputProcessorChain, ReferenceType referenceType, XMLSecStartElement startElement) throws XMLSecurityException
- Throws:
XMLSecurityException
-
-
Method Detail
-
buildTransformerChain
public Transformer buildTransformerChain(ReferenceType referenceType, java.io.OutputStream outputStream, InputProcessorChain inputProcessorChain) throws XMLSecurityException
- Throws:
XMLSecurityException
-
processNextHeaderEvent
public XMLSecEvent processNextHeaderEvent(InputProcessorChain inputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
Description copied from interface:InputProcessor
Will be called from the framework when the next security-header XMLEvent is requested- Specified by:
processNextHeaderEvent
in interfaceInputProcessor
- Specified by:
processNextHeaderEvent
in classAbstractInputProcessor
- Returns:
- The next XMLSecEvent
- Throws:
javax.xml.stream.XMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occurs
-
processNextEvent
public XMLSecEvent processNextEvent(InputProcessorChain inputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
Description copied from interface:InputProcessor
Will be called from the framework when the next XMLEvent is requested- Specified by:
processNextEvent
in interfaceInputProcessor
- Specified by:
processNextEvent
in classAbstractInputProcessor
- Returns:
- The next XMLSecEvent
- Throws:
javax.xml.stream.XMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occurs
-
processEvent
public void processEvent(XMLSecEvent xmlSecEvent, InputProcessorChain inputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
- Throws:
javax.xml.stream.XMLStreamException
XMLSecurityException
-
isFinished
public boolean isFinished()
-
setFinished
public void setFinished(boolean finished)
-
getReferenceType
public ReferenceType getReferenceType()
-
setReferenceType
public void setReferenceType(ReferenceType referenceType)
-
getTransformer
public Transformer getTransformer()
-
setTransformer
public void setTransformer(Transformer transformer)
-
getDigestOutputStream
public DigestOutputStream getDigestOutputStream()
-
setDigestOutputStream
public void setDigestOutputStream(DigestOutputStream digestOutputStream)
-
getBufferedDigestOutputStream
public java.io.OutputStream getBufferedDigestOutputStream()
-
setBufferedDigestOutputStream
public void setBufferedDigestOutputStream(java.io.OutputStream bufferedDigestOutputStream)
-
getStartElement
public XMLSecStartElement getStartElement()
-
setStartElement
public void setStartElement(XMLSecStartElement startElement)
-
getStartElementPath
public java.util.List<javax.xml.namespace.QName> getStartElementPath()
-
-