Get keyPasswordCallbackHandler working with "resources"