} else {
jaasEntryName = JAAS_ENTRY_NAME; //default
}
if (logger.isLoggable(BasicLevel.DEBUG))
logger.log(BasicLevel.DEBUG, "setIdentity: jaasEntryName = " + jaasEntryName);
loginContext = new LoginContext(jaasEntryName, new NoInputCallbackHandler(user, passwd));
} catch (LoginException e) {
if (logger.isLoggable(BasicLevel.ERROR))
logger.log(BasicLevel.ERROR, "EXCEPTION setIdentity::",e);
throw new Exception(e.getMessage());
}