Class DSSDocumentXMLSignatureInput
java.lang.Object
eu.europa.esig.dss.xades.validation.DSSDocumentXMLSignatureInput
- Direct Known Subclasses:
DigestDocumentXMLSignatureInput
This class represents an implementation of an
XMLSignatureInput created on a base of DSSDocument-
Constructor Summary
ConstructorsModifierConstructorDescriptionDSSDocumentXMLSignatureInput(eu.europa.esig.dss.model.DSSDocument document) Default constructor for anXMLSignatureInputfrom a detached documentprotectedDSSDocumentXMLSignatureInput(eu.europa.esig.dss.model.DSSDocument document, eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm) Constructor for anXMLSignatureInputfrom a base64-encoded document digest -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNodeFilter(org.apache.xml.security.signature.NodeFilter arg0) byte[]getBytes()eu.europa.esig.dss.model.DSSDocumentReturns a documentDeprecated.since DSS 6.4.getHTMLRepresentation(Set<String> arg0) List<org.apache.xml.security.signature.NodeFilter> getNodeSet(boolean arg0) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetExcludeComments(boolean arg0) voidsetExcludeNode(Node arg0) voidsetMIMEType(String arg0) voidsetNeedsToBeExpanded(boolean arg0) voidsetNodeSet(boolean arg0) voidsetOutputStream(OutputStream arg0) voidsetPreCalculatedDigest(String preCalculatedDigest) Sets the pre-calculated digest to avoid document streamingvoidsetSecureValidation(boolean arg0) voidsetSourceURI(String arg0) toString()voidvoidupdateOutputStream(OutputStream arg0, boolean arg1)
-
Constructor Details
-
DSSDocumentXMLSignatureInput
public DSSDocumentXMLSignatureInput(eu.europa.esig.dss.model.DSSDocument document) Default constructor for anXMLSignatureInputfrom a detached document- Parameters:
document-DSSDocument
-
DSSDocumentXMLSignatureInput
protected DSSDocumentXMLSignatureInput(eu.europa.esig.dss.model.DSSDocument document, eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm) Constructor for anXMLSignatureInputfrom a base64-encoded document digest- Parameters:
document-DSSDocumentdigestAlgorithm-DigestAlgorithmto be used for a digest computation
-
-
Method Details
-
getMIMEType
-
getDocumentName
Deprecated.since DSS 6.4. Please usegetDocument().getName()method insteadReturns a document name- Returns:
String
-
getDocument
public eu.europa.esig.dss.model.DSSDocument getDocument()Returns a document- Returns:
DSSDocument
-
isPreCalculatedDigest
public boolean isPreCalculatedDigest() -
getPreCalculatedDigest
-
setPreCalculatedDigest
-
isNeedsToBeExpanded
public boolean isNeedsToBeExpanded() -
setNeedsToBeExpanded
public void setNeedsToBeExpanded(boolean arg0) -
getNodeSet
- Throws:
org.apache.xml.security.parser.XMLParserExceptionIOException
-
getInputNodeSet
-
getNodeSet
public Set<Node> getNodeSet(boolean arg0) throws org.apache.xml.security.parser.XMLParserException, IOException - Throws:
org.apache.xml.security.parser.XMLParserExceptionIOException
-
getOctetStream
- Throws:
IOException
-
getOctetStreamReal
-
getBytes
- Throws:
IOExceptionorg.apache.xml.security.c14n.CanonicalizationException
-
isNodeSet
public boolean isNodeSet() -
isElement
public boolean isElement() -
isOctetStream
public boolean isOctetStream() -
isOutputStreamSet
public boolean isOutputStreamSet() -
isByteArray
public boolean isByteArray() -
isInitialized
public boolean isInitialized() -
setMIMEType
-
getSourceURI
-
setSourceURI
-
toString
-
getHTMLRepresentation
public String getHTMLRepresentation() throws org.apache.xml.security.signature.XMLSignatureException- Throws:
org.apache.xml.security.signature.XMLSignatureException
-
getHTMLRepresentation
-
getExcludeNode
-
setExcludeNode
-
getSubNode
-
isExcludeComments
public boolean isExcludeComments() -
setExcludeComments
public void setExcludeComments(boolean arg0) -
updateOutputStream
public void updateOutputStream(OutputStream arg0) throws org.apache.xml.security.c14n.CanonicalizationException, IOException - Throws:
org.apache.xml.security.c14n.CanonicalizationExceptionIOException
-
updateOutputStream
public void updateOutputStream(OutputStream arg0, boolean arg1) throws org.apache.xml.security.c14n.CanonicalizationException, IOException - Throws:
org.apache.xml.security.c14n.CanonicalizationExceptionIOException
-
setOutputStream
-
addNodeFilter
public void addNodeFilter(org.apache.xml.security.signature.NodeFilter arg0) throws org.apache.xml.security.parser.XMLParserException, IOException - Throws:
org.apache.xml.security.parser.XMLParserExceptionIOException
-
getNodeFilters
-
setNodeSet
public void setNodeSet(boolean arg0) -
isSecureValidation
public boolean isSecureValidation() -
setSecureValidation
public void setSecureValidation(boolean arg0)
-