Class HTTPHeader

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

public class HTTPHeader extends Object
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
    • 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()
    • writeTo

      public void writeTo(OutputStream stream) throws IOException
      Throws:
      IOException
    • setName

      public void setName(String name)
    • getMimeType

      public eu.europa.esig.dss.enumerations.MimeType getMimeType()
    • setMimeType

      public void setMimeType(eu.europa.esig.dss.enumerations.MimeType mimeType)
    • save

      public void save(String filePath) throws IOException
      Throws:
      IOException
    • getDigest

      public eu.europa.esig.dss.model.Digest getDigest(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm)
    • getDigestValue

      public byte[] getDigestValue(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm)