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 booleanequals(Object obj)byte[]getBytes()Returns the array of bytes representing the document or its digest value.DigestAlgorithmgetDigestAlgorithm()Returns the current used digest algorithmStringgetName()inthashCode()voidsetBytes(byte[] bytes)voidsetDigestAlgorithm(DigestAlgorithm digestAlgorithm)voidsetName(String name)StringtoString()
-
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
-