Hi, Ashish :
One thing I want to confirm is that
GSSContext gContext = manager.createContext(serverCreds);
if (gContext == null)
log.debug("Failed to create a GSSContext");
From the meaning of return value of the LoginModule, false means that it should be ignored. In the codes, if it failed to create the context, it would return false, so is it expected ? It is just in terms fo LoginModule implementation.
BTW, I am not familiar with the details of Spnego mechanism. If any expert could review the patch too, that would be better !