private SignatureObject getSignature(byte[] array) throws TikaException {
        if (this.fileContent.length <= 250 * 1024 * 1024) {
            byte[] temp = DigestUtils.sha1(array);

            SignatureObject signature = new SignatureObject();
            signature.signatureData = new BinaryItem(ByteUtil.toListOfByte(temp));
            return signature;
        } else {
            throw new TikaException(
                    "When the file size is larger than 250MB, the signature method is not implemented.");
        }
    }
Get signature for the chunk.

@param array The data of the chunk.
@return The signature instance.
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/onenote/fsshttpb/streamobj/chunking/SimpleChunking.java