// 1. Make sure the FileNotFoundException is hidden try {
Configuration.getInstance("JavaLoginConfig", new URIParameter(new URI("file:///no/such/file")));
} catch (NoSuchAlgorithmException nsae) { if (nsae.getCause() instanceof IOException &&
!(nsae.getCause() instanceof FileNotFoundException)) { // ignore
} else { throw nsae;
}
}
// 2. Make sure there's always a Configuration even if no config file exists
Configuration.getConfiguration();
// 3. Make sure there're default entries for GSS krb5 client/server
LoginConfigImpl lc = new LoginConfigImpl(GSSCaller.CALLER_INITIATE, GSSUtil.GSS_KRB5_MECH_OID); if (lc.getAppConfigurationEntry("").length == 0) { thrownew Exception("No default config for GSS krb5 client");
}
lc = new LoginConfigImpl(GSSCaller.CALLER_ACCEPT, GSSUtil.GSS_KRB5_MECH_OID); if (lc.getAppConfigurationEntry("").length == 0) { thrownew Exception("No default config for GSS krb5 server");
}
}
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.13Bemerkung:
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.