public abstract class AbstractSignatureReferenceVerifyInputProcessor extends AbstractInputProcessor
Modifier and Type | Class and Description |
---|---|
class |
AbstractSignatureReferenceVerifyInputProcessor.InternalSignatureReferenceVerifier |
Modifier and Type | Field and Description |
---|---|
protected static Boolean |
allowNotSameDocumentReferences |
protected static Boolean |
doNotThrowExceptionForManifests |
protected static Integer |
maximumAllowedReferencesPerManifest |
protected static Integer |
maximumAllowedTransformsPerReference |
Constructor and Description |
---|
AbstractSignatureReferenceVerifyInputProcessor(InputProcessorChain inputProcessorChain,
org.apache.xml.security.binding.xmldsig.SignatureType signatureType,
InboundSecurityToken inboundSecurityToken,
XMLSecurityProperties securityProperties) |
Modifier and Type | Method and Description |
---|---|
protected Transformer |
buildTransformerChain(org.apache.xml.security.binding.xmldsig.ReferenceType referenceType,
OutputStream outputStream,
InputProcessorChain inputProcessorChain,
AbstractSignatureReferenceVerifyInputProcessor.InternalSignatureReferenceVerifier internalSignatureReferenceVerifier) |
protected void |
compareDigest(byte[] calculatedDigest,
org.apache.xml.security.binding.xmldsig.ReferenceType referenceType) |
protected DigestOutputStream |
createMessageDigestOutputStream(org.apache.xml.security.binding.xmldsig.ReferenceType referenceType,
InboundSecurityContext inboundSecurityContext) |
void |
doFinal(InputProcessorChain inputProcessorChain)
Will be called when the whole document is processed.
|
InboundSecurityToken |
getInboundSecurityToken() |
List<org.apache.xml.security.binding.xmldsig.ReferenceType> |
getProcessedReferences() |
protected AbstractSignatureReferenceVerifyInputProcessor.InternalSignatureReferenceVerifier |
getSignatureReferenceVerifier(XMLSecurityProperties securityProperties,
InputProcessorChain inputProcessorChain,
org.apache.xml.security.binding.xmldsig.ReferenceType referenceType,
XMLSecStartElement startElement) |
org.apache.xml.security.binding.xmldsig.SignatureType |
getSignatureType() |
protected abstract void |
processElementPath(List<QName> elementPath,
InputProcessorChain inputProcessorChain,
XMLSecEvent xmlSecEvent,
org.apache.xml.security.binding.xmldsig.ReferenceType referenceType) |
XMLSecEvent |
processEvent(InputProcessorChain inputProcessorChain)
Will be called from the framework when the next XMLEvent is requested
|
XMLSecEvent |
processHeaderEvent(InputProcessorChain inputProcessorChain)
Will be called from the framework when the next security-header XMLEvent is requested
|
protected List<org.apache.xml.security.binding.xmldsig.ReferenceType> |
resolvesResource(XMLSecStartElement xmlSecStartElement) |
protected void |
verifyExternalReference(InputProcessorChain inputProcessorChain,
InputStream inputStream,
org.apache.xml.security.binding.xmldsig.ReferenceType referenceType) |
addAfterProcessor, addBeforeProcessor, getAfterProcessors, getBeforeProcessors, getPhase, getReferenceIDAttribute, getSecurityProperties, setPhase
protected static final Integer maximumAllowedReferencesPerManifest
protected static final Integer maximumAllowedTransformsPerReference
protected static final Boolean doNotThrowExceptionForManifests
protected static final Boolean allowNotSameDocumentReferences
public AbstractSignatureReferenceVerifyInputProcessor(InputProcessorChain inputProcessorChain, org.apache.xml.security.binding.xmldsig.SignatureType signatureType, InboundSecurityToken inboundSecurityToken, XMLSecurityProperties securityProperties) throws XMLSecurityException
XMLSecurityException
public org.apache.xml.security.binding.xmldsig.SignatureType getSignatureType()
public List<org.apache.xml.security.binding.xmldsig.ReferenceType> getProcessedReferences()
public InboundSecurityToken getInboundSecurityToken()
public XMLSecEvent processHeaderEvent(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException
InputProcessor
XMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occurspublic XMLSecEvent processEvent(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException
InputProcessor
XMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occursprotected abstract void processElementPath(List<QName> elementPath, InputProcessorChain inputProcessorChain, XMLSecEvent xmlSecEvent, org.apache.xml.security.binding.xmldsig.ReferenceType referenceType) throws XMLSecurityException
XMLSecurityException
protected List<org.apache.xml.security.binding.xmldsig.ReferenceType> resolvesResource(XMLSecStartElement xmlSecStartElement)
public void doFinal(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException
InputProcessor
doFinal
in interface InputProcessor
doFinal
in class AbstractInputProcessor
XMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occursprotected AbstractSignatureReferenceVerifyInputProcessor.InternalSignatureReferenceVerifier getSignatureReferenceVerifier(XMLSecurityProperties securityProperties, InputProcessorChain inputProcessorChain, org.apache.xml.security.binding.xmldsig.ReferenceType referenceType, XMLSecStartElement startElement) throws XMLSecurityException
XMLSecurityException
protected void verifyExternalReference(InputProcessorChain inputProcessorChain, InputStream inputStream, org.apache.xml.security.binding.xmldsig.ReferenceType referenceType) throws XMLSecurityException, XMLStreamException
protected DigestOutputStream createMessageDigestOutputStream(org.apache.xml.security.binding.xmldsig.ReferenceType referenceType, InboundSecurityContext inboundSecurityContext) throws XMLSecurityException
XMLSecurityException
protected Transformer buildTransformerChain(org.apache.xml.security.binding.xmldsig.ReferenceType referenceType, OutputStream outputStream, InputProcessorChain inputProcessorChain, AbstractSignatureReferenceVerifyInputProcessor.InternalSignatureReferenceVerifier internalSignatureReferenceVerifier) throws XMLSecurityException
XMLSecurityException
protected void compareDigest(byte[] calculatedDigest, org.apache.xml.security.binding.xmldsig.ReferenceType referenceType) throws XMLSecurityException
XMLSecurityException
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.