-1

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

kais
  • 63
  • 1
  • 13
  • *trying to sign a folder* - what do you mean? Sign each file in that folder or create a single signature for the whole folder (probably wrapped in some container archive)? – mkl Dec 15 '14 at 13:59

2 Answers2

0

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 !

Community
  • 1
  • 1
Hichamov
  • 636
  • 6
  • 8
0

You might want to take a look at the Javadocs for security and digital sign generation. https://docs.oracle.com/javase/tutorial/security/apisign/gensig.html

Abhiroop Sarkar
  • 2,251
  • 1
  • 26
  • 45