getLog().info("Encrypters:");
for (NativeEncrypter encrypter : encrypters)
{
boolean usable = encrypter.isUsable();
UsabilityDetail usabilityDetail = encrypter.getUsabilityDetail();
String reason;
if (usabilityDetail == null)
reason = null;
else
{
if (verboseEncrypterDetail && usabilityDetail.getDetailMessage() != null)
reason = usabilityDetail.getDetailMessage();
else
reason = usabilityDetail.getSummary();
}
if (reason == null)
reason = "(no reason given)";
String detail = (usable ? "usable" : "not usable - " + reason);
getLog().info(encrypter.getClass().getCanonicalName() + " - " + detail);
if (usabilityDetail != null && usabilityDetail.getError() != null)
getLog().debug(usabilityDetail.getError());
}
}