Class HTTPHeader
java.lang.Object
eu.europa.esig.dss.jades.HTTPHeader
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HTTPHeaderDigest
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneu.europa.esig.dss.model.DigestgetDigest(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm) byte[]getDigestValue(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm) eu.europa.esig.dss.enumerations.MimeTypegetName()Returns a String name (key) of the HTTP HeadergetValue()Returns a String value of the HTTP HeadervoidvoidsetMimeType(eu.europa.esig.dss.enumerations.MimeType mimeType) voidvoidSets a String value of HTTP HeadervoidwriteTo(OutputStream stream)
-
Constructor Details
-
HTTPHeader
-
-
Method Details
-
getName
Returns a String name (key) of the HTTP Header -
getValue
-
setValue
-
openStream
-
writeTo
- Throws:
IOException
-
setName
-
getMimeType
public eu.europa.esig.dss.enumerations.MimeType getMimeType() -
setMimeType
public void setMimeType(eu.europa.esig.dss.enumerations.MimeType mimeType) -
save
- 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)
-