Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java program to password protect a signed pdf file and validation of the password  RSS feed

Ranch Hand
Posts: 56
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friend ,

i have to write a java program or application such that for example
1. form16.pdf will be digitally signed , i have written the code for digitally signing a pdf.its working
2. i have also written java program to protect the above signed pdf input as the output of previous program (that is digitally signed pdf) .But problem here is signature is becoming invalid (and its saying document is being tampered.)

But the password is different for different employee / pdf in organisation(for that username corresponding password) . the password protected signed pdf should be sent as attachment over mail and that when the user clicks to open this pdf , It should prompt him with a password and this password should be validated against the table or storage place..and if wrong it should prompt a error message "password entered is wrong "

but i am not supposed to use any Database as such. Please could you provide me some inputs on this requirement
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!