mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-14 13:03:13 +02:00
Debug: security properties
This commit is contained in:
@@ -171,6 +171,11 @@ public class DebugHelper {
|
||||
"networkaddress.cache.negative.ttl"
|
||||
));
|
||||
|
||||
private static final List<String> SECURITY_PROPS = Collections.unmodifiableList(Arrays.asList(
|
||||
"jdk.tls.disabledAlgorithms",
|
||||
"jdk.tls.client.protocols"
|
||||
));
|
||||
|
||||
static boolean isAvailable() {
|
||||
return true;
|
||||
}
|
||||
@@ -1796,6 +1801,14 @@ public class DebugHelper {
|
||||
size += write(os, prop + "=" + System.getProperty(prop) + "\r\n");
|
||||
size += write(os, "\r\n");
|
||||
|
||||
try {
|
||||
for (String prop : SECURITY_PROPS)
|
||||
size += write(os, prop + "=" + Security.getProperty(prop) + "\r\n");
|
||||
size += write(os, "\r\n");
|
||||
} catch (Throwable ex) {
|
||||
size += write(os, String.format("%s\r\n", ex));
|
||||
}
|
||||
|
||||
ApplicationInfo ai = context.getApplicationInfo();
|
||||
if (ai != null)
|
||||
size += write(os, String.format("Source: %s\r\n public: %s\r\n",
|
||||
|
||||
Reference in New Issue
Block a user