Package eu.europa.esig.dss.jades
Class HTTPHeader
java.lang.Object
eu.europa.esig.dss.jades.HTTPHeader
- All Implemented Interfaces:
- 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetDigest(DigestAlgorithm digestAlgorithm) Deprecated.byte[]getDigestValue(DigestAlgorithm digestAlgorithm) This method returns digest value of the current document's content using the provideddigestAlgorithmReturns the mime-type of theDSSDocument.getName()Returns a String name (key) of the HTTP HeadergetValue()Returns a String value of the HTTP HeaderOpens aInputStreamon theDSSDocumentcontents.voidSave the content of the DSSDocument to the file.voidsetMimeType(MimeType mimeType) This method sets the mime-type of theDSSDocument.voidThis method sets the name of theDSSDocument.voidSets a String value of HTTP HeadervoidwriteTo(OutputStream stream) Writes the content of the document to the provided OutputStream
- 
Constructor Details- 
HTTPHeader
 
- 
- 
Method Details- 
getNameReturns a String name (key) of the HTTP Header- Specified by:
- getNamein interface- DSSDocument
- Returns:
- Stringrepresenting the name of the current- DSSDocument
 
- 
getValue
- 
setValue
- 
openStreamDescription copied from interface:DSSDocumentOpens aInputStreamon theDSSDocumentcontents. The type of theInputStreamdepends on the type of theDSSDocument.- Specified by:
- openStreamin interface- DSSDocument
- Returns:
- an InputStream
 
- 
writeToDescription copied from interface:DSSDocumentWrites the content of the document to the provided OutputStream- Specified by:
- writeToin interface- DSSDocument
- Parameters:
- stream- the output stream where to write
- Throws:
- IOException- if any IO error happens
 
- 
setNameDescription copied from interface:DSSDocumentThis method sets the name of theDSSDocument.- Specified by:
- setNamein interface- DSSDocument
- Parameters:
- name- the document name
 
- 
getMimeTypeDescription copied from interface:DSSDocumentReturns the mime-type of theDSSDocument.- Specified by:
- getMimeTypein interface- DSSDocument
- Returns:
- MimeType
 
- 
setMimeTypeDescription copied from interface:DSSDocumentThis method sets the mime-type of theDSSDocument.- Specified by:
- setMimeTypein interface- DSSDocument
- Parameters:
- mimeType-- MimeType
 
- 
saveDescription copied from interface:DSSDocumentSave the content of the DSSDocument to the file.- Specified by:
- savein interface- DSSDocument
- Parameters:
- filePath- the path to the file to be created
- Throws:
- IOException- if any IO error happens
 
- 
getDigestDeprecated.Description copied from interface:DSSDocumentThis method returns the encoded digest value of the currentDSSDocumentusing the base64 algorithm.- Specified by:
- getDigestin interface- DSSDocument
- Parameters:
- digestAlgorithm-- DigestAlgorithm
- Returns:
- base64 encoded String
 
- 
getDigestValueDescription copied from interface:DSSDocumentThis method returns digest value of the current document's content using the provideddigestAlgorithm- Specified by:
- getDigestValuein interface- DSSDocument
- Parameters:
- digestAlgorithm-- DigestAlgorithmto get digest for
- Returns:
- byte array representing digest of the document
 
 
-