Class RemoteDocument

    • Constructor Detail

      • RemoteDocument

        public RemoteDocument()
      • RemoteDocument

        public RemoteDocument​(byte[] bytes,
                              String name)
        This constructor allows to create a new instance of RemoteDocument with the whole document
        Parameters:
        bytes - the full document binaries
        name - the document name
      • RemoteDocument

        public RemoteDocument​(byte[] bytes,
                              DigestAlgorithm digestAlgorithm,
                              String name)
        This constructor allows to create an instance of RemoteDocument with a digest document
        Parameters:
        bytes - the result of the digest
        digestAlgorithm - the used digest algorithm
        name - the document name
    • Method Detail

      • 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

        public DigestAlgorithm getDigestAlgorithm()
        Returns the current used digest algorithm
        Returns:
      • setDigestAlgorithm

        public void setDigestAlgorithm​(DigestAlgorithm digestAlgorithm)
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object