Class PreparedDocument

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class PreparedDocument
    extends Document

    A document that has been prepared for signing

    • Method Detail

      • getHash

        public byte[] getHash​(HashAlgorithm algorithm)

        Calculate the hash value

        Calculate the hash value to create the signature from.
        Parameters:
        algorithm - The hash algorithm
        Returns:
        Throws:
        java.lang.IllegalArgumentException - if algorithm is null