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/trunk@1642808 13f79535-47bb-0310-9956-ffa450edef68