Support for authentication in JMS indexer

Fix for issue: https://www.pivotaltracker.com/s/projects/684825/stories/64929156