protected char[] getMasterPassword(String encryptedPassword) throws PasswordResolverException { synchronized (masterPasswordLock) { init(); if (masterPassword == null) { if (masterPwdCallback == null) { throw new PasswordResolverException("masterPasswordCallback is not initialized"); } this.masterPassword = masterPwdCallback.getPassword("Please enter the master password", encryptedPassword); } return masterPassword; } }