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()
RemoteDocument(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.DigestAlgorithm
getDigestAlgorithm()
Returns the current used digest algorithmString
getName()
int
hashCode()
void
setBytes(byte[] bytes)
void
setDigestAlgorithm(DigestAlgorithm digestAlgorithm)
void
setName(String name)
String
toString()
-
Constructor Details
-
RemoteDocument
public RemoteDocument() -
RemoteDocument
This constructor allows to create a new instance of RemoteDocument with the whole document- Parameters:
bytes
- the full document binariesname
- the document name
-
RemoteDocument
This constructor allows to create an instance of RemoteDocument with a digest document- Parameters:
bytes
- the result of the digestdigestAlgorithm
- the used digest algorithmname
- the document name
-
-
Method Details
-
getBytes
public byte[] getBytes()Returns the array of bytes representing the document or its digest value.- Returns:
- array of
byte
-
setBytes
public void setBytes(byte[] bytes) -
getDigestAlgorithm
Returns the current used digest algorithm- Returns:
-
setDigestAlgorithm
-
getName
-
setName
-
hashCode
public int hashCode() -
equals
-
toString
-