After login to Kerberos using the code:
LoginContext loginContext = new LoginContext("JAASClient", new CallbackHandler() { @Override public