java.lang.Object
eu.europa.esig.dss.jades.HTTPHeader
- All Implemented Interfaces:
eu.europa.esig.dss.model.DSSDocument,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
-
Method Details
-
getName
Returns a String name (key) of the HTTP Header- Specified by:
getNamein interfaceeu.europa.esig.dss.model.DSSDocument
-
getValue
Returns a String value of the HTTP Header- Returns:
Stringvalue
-
setValue
Sets a String value of HTTP Header- Parameters:
value-Stringvalue
-
openStream
- Specified by:
openStreamin interfaceeu.europa.esig.dss.model.DSSDocument
-
writeTo
- Specified by:
writeToin interfaceeu.europa.esig.dss.model.DSSDocument- Throws:
IOException
-
setName
- Specified by:
setNamein interfaceeu.europa.esig.dss.model.DSSDocument
-
getMimeType
public eu.europa.esig.dss.enumerations.MimeType getMimeType()- Specified by:
getMimeTypein interfaceeu.europa.esig.dss.model.DSSDocument
-
setMimeType
public void setMimeType(eu.europa.esig.dss.enumerations.MimeType mimeType) - Specified by:
setMimeTypein interfaceeu.europa.esig.dss.model.DSSDocument
-
save
- Specified by:
savein interfaceeu.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:
getDigestin interfaceeu.europa.esig.dss.model.DSSDocument
-
getDigestValue
public byte[] getDigestValue(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm) - Specified by:
getDigestValuein interfaceeu.europa.esig.dss.model.DSSDocument
-