Package eu.europa.esig.dss.ws.dto
Class RemoteDocument
java.lang.Object
eu.europa.esig.dss.ws.dto.RemoteDocument
- All Implemented Interfaces:
Serializable
public class RemoteDocument extends Object implements Serializable
This class is used to transport a DSSDocument with SOAP and/or REST
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description RemoteDocument()
Empty 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 Type Method Description boolean
equals(Object obj)
byte[]
getBytes()
Returns the array of bytes representing the document or its digest value (for DigestDocument).DigestAlgorithm
getDigestAlgorithm()
Returns the current used digest algorithm for a DigestDocumentString
getName()
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
setName(String name)
Sets the document nameString
toString()
-
Constructor Details
-
RemoteDocument
public RemoteDocument()Empty constructor -
RemoteDocument
This constructor allows to create a new instance of RemoteDocument with the whole document- Parameters:
bytes
- the full document binariesname
-String
the document name
-
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
Gets the document name- Returns:
String
-
setName
Sets the document name- Parameters:
name
-String
-
hashCode
public int hashCode() -
equals
-
toString
-