PDFBOX-2533: DRY refactoring of decryption code that is used in PreflightParser and in NonSequentialParser

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/branches/1.8@1642810 13f79535-47bb-0310-9956-ffa450edef68