Class PreparedDocument

All Implemented Interfaces:
AutoCloseable

public class PreparedDocument extends Document

A document that has been prepared for signing

  • Method Details

    • 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:
      IllegalArgumentException - if algorithm is null