I am using PDFBox 2.0 version and I have to deal with some PDFs that might be password protected.
I know the way with our existing code with iText is as,