Class AbstractSignatureReferenceVerifyInputProcessor
- java.lang.Object
-
- org.apache.xml.security.stax.ext.AbstractInputProcessor
-
- org.apache.xml.security.stax.impl.processor.input.AbstractSignatureReferenceVerifyInputProcessor
-
- All Implemented Interfaces:
InputProcessor
- Direct Known Subclasses:
XMLSignatureReferenceVerifyInputProcessor
public abstract class AbstractSignatureReferenceVerifyInputProcessor extends AbstractInputProcessor
- Version:
- $Revision: 1742962 $ $Date: 2016-05-09 16:51:21 +0200 (Mon, 09 May 2016) $
- Author:
- $Author: coheigea $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAbstractSignatureReferenceVerifyInputProcessor.InternalSignatureReferenceVerifier
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.BooleanallowNotSameDocumentReferencesprotected static java.lang.BooleandoNotThrowExceptionForManifestsprotected static java.lang.IntegermaximumAllowedReferencesPerManifestprotected static java.lang.IntegermaximumAllowedTransformsPerReference
-
Constructor Summary
Constructors Constructor Description AbstractSignatureReferenceVerifyInputProcessor(InputProcessorChain inputProcessorChain, org.apache.xml.security.binding.xmldsig.SignatureType signatureType, InboundSecurityToken inboundSecurityToken, XMLSecurityProperties securityProperties)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected TransformerbuildTransformerChain(org.apache.xml.security.binding.xmldsig.ReferenceType referenceType, java.io.OutputStream outputStream, InputProcessorChain inputProcessorChain, AbstractSignatureReferenceVerifyInputProcessor.InternalSignatureReferenceVerifier internalSignatureReferenceVerifier)protected voidcompareDigest(byte[] calculatedDigest, org.apache.xml.security.binding.xmldsig.ReferenceType referenceType)protected DigestOutputStreamcreateMessageDigestOutputStream(org.apache.xml.security.binding.xmldsig.ReferenceType referenceType, InboundSecurityContext inboundSecurityContext)voiddoFinal(InputProcessorChain inputProcessorChain)Will be called when the whole document is processed.InboundSecurityTokengetInboundSecurityToken()java.util.List<org.apache.xml.security.binding.xmldsig.ReferenceType>getProcessedReferences()protected AbstractSignatureReferenceVerifyInputProcessor.InternalSignatureReferenceVerifiergetSignatureReferenceVerifier(XMLSecurityProperties securityProperties, InputProcessorChain inputProcessorChain, org.apache.xml.security.binding.xmldsig.ReferenceType referenceType, XMLSecStartElement startElement)org.apache.xml.security.binding.xmldsig.SignatureTypegetSignatureType()protected abstract voidprocessElementPath(java.util.List<javax.xml.namespace.QName> elementPath, InputProcessorChain inputProcessorChain, XMLSecEvent xmlSecEvent, org.apache.xml.security.binding.xmldsig.ReferenceType referenceType)XMLSecEventprocessNextEvent(InputProcessorChain inputProcessorChain)Will be called from the framework when the next XMLEvent is requestedXMLSecEventprocessNextHeaderEvent(InputProcessorChain inputProcessorChain)Will be called from the framework when the next security-header XMLEvent is requestedprotected java.util.List<org.apache.xml.security.binding.xmldsig.ReferenceType>resolvesResource(XMLSecStartElement xmlSecStartElement)protected voidverifyExternalReference(InputProcessorChain inputProcessorChain, java.io.InputStream inputStream, org.apache.xml.security.binding.xmldsig.ReferenceType referenceType)-
Methods inherited from class org.apache.xml.security.stax.ext.AbstractInputProcessor
addAfterProcessor, addBeforeProcessor, getAfterProcessors, getBeforeProcessors, getPhase, getReferenceIDAttribute, getSecurityProperties, setPhase
-
-
-
-
Field Detail
-
maximumAllowedReferencesPerManifest
protected static final java.lang.Integer maximumAllowedReferencesPerManifest
-
maximumAllowedTransformsPerReference
protected static final java.lang.Integer maximumAllowedTransformsPerReference
-
doNotThrowExceptionForManifests
protected static final java.lang.Boolean doNotThrowExceptionForManifests
-
allowNotSameDocumentReferences
protected static final java.lang.Boolean allowNotSameDocumentReferences
-
-
Constructor Detail
-
AbstractSignatureReferenceVerifyInputProcessor
public AbstractSignatureReferenceVerifyInputProcessor(InputProcessorChain inputProcessorChain, org.apache.xml.security.binding.xmldsig.SignatureType signatureType, InboundSecurityToken inboundSecurityToken, XMLSecurityProperties securityProperties) throws XMLSecurityException
- Throws:
XMLSecurityException
-
-
Method Detail
-
getSignatureType
public org.apache.xml.security.binding.xmldsig.SignatureType getSignatureType()
-
getProcessedReferences
public java.util.List<org.apache.xml.security.binding.xmldsig.ReferenceType> getProcessedReferences()
-
getInboundSecurityToken
public InboundSecurityToken getInboundSecurityToken()
-
processNextHeaderEvent
public XMLSecEvent processNextHeaderEvent(InputProcessorChain inputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
Description copied from interface:InputProcessorWill be called from the framework when the next security-header XMLEvent is requested- Specified by:
processNextHeaderEventin interfaceInputProcessor- Specified by:
processNextHeaderEventin 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:InputProcessorWill be called from the framework when the next XMLEvent is requested- Specified by:
processNextEventin interfaceInputProcessor- Specified by:
processNextEventin classAbstractInputProcessor- Returns:
- The next XMLSecEvent
- Throws:
javax.xml.stream.XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-
processElementPath
protected abstract void processElementPath(java.util.List<javax.xml.namespace.QName> elementPath, InputProcessorChain inputProcessorChain, XMLSecEvent xmlSecEvent, org.apache.xml.security.binding.xmldsig.ReferenceType referenceType) throws XMLSecurityException- Throws:
XMLSecurityException
-
resolvesResource
protected java.util.List<org.apache.xml.security.binding.xmldsig.ReferenceType> resolvesResource(XMLSecStartElement xmlSecStartElement)
-
doFinal
public void doFinal(InputProcessorChain inputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
Description copied from interface:InputProcessorWill be called when the whole document is processed.- Specified by:
doFinalin interfaceInputProcessor- Overrides:
doFinalin classAbstractInputProcessor- Throws:
javax.xml.stream.XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-
getSignatureReferenceVerifier
protected AbstractSignatureReferenceVerifyInputProcessor.InternalSignatureReferenceVerifier getSignatureReferenceVerifier(XMLSecurityProperties securityProperties, InputProcessorChain inputProcessorChain, org.apache.xml.security.binding.xmldsig.ReferenceType referenceType, XMLSecStartElement startElement) throws XMLSecurityException
- Throws:
XMLSecurityException
-
verifyExternalReference
protected void verifyExternalReference(InputProcessorChain inputProcessorChain, java.io.InputStream inputStream, org.apache.xml.security.binding.xmldsig.ReferenceType referenceType) throws XMLSecurityException, javax.xml.stream.XMLStreamException
- Throws:
XMLSecurityExceptionjavax.xml.stream.XMLStreamException
-
createMessageDigestOutputStream
protected DigestOutputStream createMessageDigestOutputStream(org.apache.xml.security.binding.xmldsig.ReferenceType referenceType, InboundSecurityContext inboundSecurityContext) throws XMLSecurityException
- Throws:
XMLSecurityException
-
buildTransformerChain
protected Transformer buildTransformerChain(org.apache.xml.security.binding.xmldsig.ReferenceType referenceType, java.io.OutputStream outputStream, InputProcessorChain inputProcessorChain, AbstractSignatureReferenceVerifyInputProcessor.InternalSignatureReferenceVerifier internalSignatureReferenceVerifier) throws XMLSecurityException
- Throws:
XMLSecurityException
-
compareDigest
protected void compareDigest(byte[] calculatedDigest, org.apache.xml.security.binding.xmldsig.ReferenceType referenceType) throws XMLSecurityException- Throws:
XMLSecurityException
-
-