} catch (UnsupportedCallbackException e) {
throw new LoginException("errorInGettingPasswordForUser");
}
LoginContext loginContext = new LoginContext("Server",
new CredentialsCallbackHandler(password));
loginContext.login();
subject = loginContext.getSubject();
}