class JaasConfiguration extends Configuration {

	@Override
	public AppConfigurationEntry[] getAppConfigurationEntry(String applicationName) {

		LOG.debug("JAAS configuration requested for the application entry: {}", applicationName);

		AppConfigurationEntry[] appConfigurationEntry;

		if(keytabKerberosAce != null) {
			appConfigurationEntry = new AppConfigurationEntry[] {keytabKerberosAce, userKerberosAce};
		} else {
			appConfigurationEntry = new AppConfigurationEntry[] {userKerberosAce};
		}

		return appConfigurationEntry;
	}

	protected  JaasConfiguration(String keytab, String principal);

}