Class XMLSignatureInput

java.lang.Object
org.apache.xml.security.signature.XMLSignatureInput

public class XMLSignatureInput extends Object
Class XMLSignatureInput $todo$ check whether an XMLSignatureInput can be _both_, octet stream _and_ node set?
  • Field Details

    • inputOctetStreamProxy

      private InputStream inputOctetStreamProxy
      Some InputStreams do not support the InputStream.reset() method, so we read it in completely and work on our Proxy.
    • inputNodeSet

      private Set<Node> inputNodeSet
      The original NodeSet for this XMLSignatureInput
    • subNode

      private Node subNode
      The original Element
    • excludeNode

      private Node excludeNode
      Exclude Node *for enveloped transformations*
    • excludeComments

      private boolean excludeComments
    • isNodeSet

      private boolean isNodeSet
    • bytes

      private byte[] bytes
      A cached bytes
    • secureValidation

      private boolean secureValidation
    • mimeType

      private String mimeType
      Some Transforms may require explicit MIME type, charset (IANA registered "character set"), or other such information concerning the data they are receiving from an earlier Transform or the source data, although no Transform algorithm specified in this document needs such explicit information. Such data characteristics are provided as parameters to the Transform algorithm and should be described in the specification for the algorithm.
    • sourceURI

      private String sourceURI
      Field sourceURI
    • nodeFilters

      private List<NodeFilter> nodeFilters
      Node Filter list.
    • needsToBeExpanded

      private boolean needsToBeExpanded
    • outputStream

      private OutputStream outputStream
    • preCalculatedDigest

      private String preCalculatedDigest
      Pre-calculated digest value of the object in base64.
  • Constructor Details

    • XMLSignatureInput

      public XMLSignatureInput(byte[] inputOctets)
      Construct a XMLSignatureInput from an octet array.

      This is a comfort method, which internally converts the byte[] array into an InputStream

      NOTE: no defensive copy

      Parameters:
      inputOctets - an octet array which including XML document or node
    • XMLSignatureInput

      public XMLSignatureInput(InputStream inputOctetStream)
      Constructs a XMLSignatureInput from an octet stream. The stream is directly read.
      Parameters:
      inputOctetStream -
    • XMLSignatureInput

      public XMLSignatureInput(Node rootNode)
      Construct a XMLSignatureInput from a subtree rooted by rootNode. This method included the node and all his descendants in the output.
      Parameters:
      rootNode -
    • XMLSignatureInput

      public XMLSignatureInput(Set<Node> inputNodeSet)
      Constructor XMLSignatureInput
      Parameters:
      inputNodeSet -
    • XMLSignatureInput

      public XMLSignatureInput(String preCalculatedDigest)
      Construct a XMLSignatureInput from a known digest value in Base64. This makes it possible to compare the element digest with the provided digest value.
      Parameters:
      preCalculatedDigest - digest value in base64.
  • Method Details