Class DSSDocumentXMLSignatureInput

java.lang.Object
eu.europa.esig.dss.xades.validation.DSSDocumentXMLSignatureInput
Direct Known Subclasses:
DigestDocumentXMLSignatureInput

public class DSSDocumentXMLSignatureInput extends Object
This class represents an implementation of an XMLSignatureInput created on a base of DSSDocument
  • Constructor Details

    • DSSDocumentXMLSignatureInput

      public DSSDocumentXMLSignatureInput(eu.europa.esig.dss.model.DSSDocument document)
      Default constructor for an XMLSignatureInput from 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 an XMLSignatureInput from a base64-encoded document digest
      Parameters:
      document - DSSDocument
      digestAlgorithm - DigestAlgorithm to be used for a digest computation
  • Method Details

    • getMIMEType

      public String getMIMEType()
    • getDocumentName

      @Deprecated public String getDocumentName()
      Deprecated.
      since DSS 6.4. Please use getDocument().getName() method instead
      Returns a document name
      Returns:
      String
    • getDocument

      public eu.europa.esig.dss.model.DSSDocument getDocument()
      Returns a document
      Returns:
      DSSDocument
    • isPreCalculatedDigest

      public boolean isPreCalculatedDigest()
    • getPreCalculatedDigest

      public String getPreCalculatedDigest()
    • setPreCalculatedDigest

      public void setPreCalculatedDigest(String preCalculatedDigest)
      Sets the pre-calculated digest to avoid document streaming
      Parameters:
      preCalculatedDigest - String base64-encoded value
    • isNeedsToBeExpanded

      public boolean isNeedsToBeExpanded()
    • setNeedsToBeExpanded

      public void setNeedsToBeExpanded(boolean arg0)
    • getNodeSet

      public Set<Node> getNodeSet() throws org.apache.xml.security.parser.XMLParserException, IOException
      Throws:
      org.apache.xml.security.parser.XMLParserException
      IOException
    • getInputNodeSet

      public Set<Node> getInputNodeSet()
    • getNodeSet

      public Set<Node> getNodeSet(boolean arg0) throws org.apache.xml.security.parser.XMLParserException, IOException
      Throws:
      org.apache.xml.security.parser.XMLParserException
      IOException
    • getOctetStream

      public InputStream getOctetStream() throws IOException
      Throws:
      IOException
    • getOctetStreamReal

      public InputStream getOctetStreamReal()
    • getBytes

      public byte[] getBytes() throws IOException, org.apache.xml.security.c14n.CanonicalizationException
      Throws:
      IOException
      org.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

      public void setMIMEType(String arg0)
    • getSourceURI

      public String getSourceURI()
    • setSourceURI

      public void setSourceURI(String arg0)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getHTMLRepresentation

      public String getHTMLRepresentation() throws org.apache.xml.security.signature.XMLSignatureException
      Throws:
      org.apache.xml.security.signature.XMLSignatureException
    • getHTMLRepresentation

      public String getHTMLRepresentation(Set<String> arg0) throws org.apache.xml.security.signature.XMLSignatureException
      Throws:
      org.apache.xml.security.signature.XMLSignatureException
    • getExcludeNode

      public Node getExcludeNode()
    • setExcludeNode

      public void setExcludeNode(Node arg0)
    • getSubNode

      public Node 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.CanonicalizationException
      IOException
    • updateOutputStream

      public void updateOutputStream(OutputStream arg0, boolean arg1) throws org.apache.xml.security.c14n.CanonicalizationException, IOException
      Throws:
      org.apache.xml.security.c14n.CanonicalizationException
      IOException
    • setOutputStream

      public void setOutputStream(OutputStream arg0)
    • 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.XMLParserException
      IOException
    • getNodeFilters

      public List<org.apache.xml.security.signature.NodeFilter> getNodeFilters()
    • setNodeSet

      public void setNodeSet(boolean arg0)
    • isSecureValidation

      public boolean isSecureValidation()
    • setSecureValidation

      public void setSecureValidation(boolean arg0)