Search code examples
javasecuritydigital-signaturedigital-certificate

Signing a folder using digital signature in java


I am trying to sign a folder using digital signature.I am able to sign a file.But Now i need to sign a folder containing multiple files.Please help me with an example that will suffice my requirement


Solution

  • You should use this way to iterate on folder here: How do I iterate through the files in a directory in Java?, but except of calling System.out.println("File: " + file.getName()); for each file call you signing method. Good luck !