Package eu.europa.esig.dss.ws.dto
Class RemoteDocument
java.lang.Object
eu.europa.esig.dss.ws.dto.RemoteDocument
- All Implemented Interfaces:
Serializable
This class is used to transport a DSSDocument with SOAP and/or REST
- See Also:
-
Constructor Summary
ConstructorDescriptionEmpty constructorRemoteDocument
(byte[] bytes, DigestAlgorithm digestAlgorithm, String name) This constructor allows to create an instance of RemoteDocument with a digest documentRemoteDocument
(byte[] bytes, String name) This constructor allows to create a new instance of RemoteDocument with the whole document -
Method Summary
Modifier and TypeMethodDescriptionboolean
byte[]
getBytes()
Returns the array of bytes representing the document or its digest value (for DigestDocument).Returns the current used digest algorithm for a DigestDocumentgetName()
Gets the document nameint
hashCode()
void
setBytes
(byte[] bytes) Sets binaries of the document or its digest value (for DigestDocument).void
setDigestAlgorithm
(DigestAlgorithm digestAlgorithm) Sets the usedDigestAlgorithm
for a DigestDocumentvoid
Sets the document nametoString()
-
Constructor Details
-
RemoteDocument
public RemoteDocument()Empty constructor -
RemoteDocument
-
RemoteDocument
This constructor allows to create an instance of RemoteDocument with a digest document- Parameters:
bytes
- the result of the digestdigestAlgorithm
-DigestAlgorithm
the used digest algorithmname
-String
the document name
-
-
Method Details
-
getBytes
public byte[] getBytes()Returns the array of bytes representing the document or its digest value (for DigestDocument).- Returns:
- array of
byte
-
setBytes
public void setBytes(byte[] bytes) Sets binaries of the document or its digest value (for DigestDocument).- Parameters:
bytes
- binaries of the document or its digest value (for DigestDocument)
-
getDigestAlgorithm
Returns the current used digest algorithm for a DigestDocument- Returns:
DigestAlgorithm
-
setDigestAlgorithm
Sets the usedDigestAlgorithm
for a DigestDocument- Parameters:
digestAlgorithm
-DigestAlgorithm
-
getName
-
setName
-
hashCode
-
equals
-
toString
-