Class HTTPHeader

java.lang.Object
eu.europa.esig.dss.jades.HTTPHeader
All Implemented Interfaces:
eu.europa.esig.dss.model.DSSDocument, Serializable
Direct Known Subclasses:
HTTPHeaderDigest

public class HTTPHeader extends Object implements eu.europa.esig.dss.model.DSSDocument
The class represents an HTTP Header to be signed See ETSI TS 119 182-1 "5.2.8.2 Mechanism HttpHeaders" The class shall be used only for JAdES detached SigDMechanism.HTTP_HEADERS mechanism
See Also:
  • Constructor Details

    • HTTPHeader

      public HTTPHeader(String name, String value)
      The default constructor
      Parameters:
      name - String of the header
      value - String of the header
  • Method Details

    • getName

      public String getName()
      Returns a String name (key) of the HTTP Header
      Specified by:
      getName in interface eu.europa.esig.dss.model.DSSDocument
    • getValue

      public String getValue()
      Returns a String value of the HTTP Header
      Returns:
      String value
    • setValue

      public void setValue(String value)
      Sets a String value of HTTP Header
      Parameters:
      value - String value
    • openStream

      public InputStream openStream()
      Specified by:
      openStream in interface eu.europa.esig.dss.model.DSSDocument
    • writeTo

      public void writeTo(OutputStream stream) throws IOException
      Specified by:
      writeTo in interface eu.europa.esig.dss.model.DSSDocument
      Throws:
      IOException
    • setName

      public void setName(String name)
      Specified by:
      setName in interface eu.europa.esig.dss.model.DSSDocument
    • getMimeType

      public eu.europa.esig.dss.enumerations.MimeType getMimeType()
      Specified by:
      getMimeType in interface eu.europa.esig.dss.model.DSSDocument
    • setMimeType

      public void setMimeType(eu.europa.esig.dss.enumerations.MimeType mimeType)
      Specified by:
      setMimeType in interface eu.europa.esig.dss.model.DSSDocument
    • save

      public void save(String filePath) throws IOException
      Specified by:
      save in interface eu.europa.esig.dss.model.DSSDocument
      Throws:
      IOException
    • getDigest

      public eu.europa.esig.dss.model.Digest getDigest(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm)
      Specified by:
      getDigest in interface eu.europa.esig.dss.model.DSSDocument
    • getDigestValue

      public byte[] getDigestValue(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm)
      Specified by:
      getDigestValue in interface eu.europa.esig.dss.model.DSSDocument