(OFBIZ-10814) Fixes incorrect retrieval of the Authorization header JWT token. Fixes wrong API usage for the key parameter which assumed the key is provided in BAS64 format. Refactored the code to use helper methods for key and auth header retrieval. Javadoc corrections and enhancements. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1852882 13f79535-47bb-0310-9956-ffa450edef68