Skip to content

Commit

Permalink
StartupConfiguration: support for midpoint.printSensitiveValues
Browse files Browse the repository at this point in the history
Added midpoint.printSensitiveValues support, which is more in line with
our "midpoint." prefix for sys-props.
Old midpointPrintSensitiveValues will keep working until the LTS ends.
  • Loading branch information
virgo47 committed Mar 21, 2022
1 parent 12b60da commit f3d1698
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2010-2021 Evolveum and contributors
* Copyright (C) 2010-2022 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
Expand Down Expand Up @@ -59,9 +59,11 @@ public class StartupConfiguration implements MidpointConfiguration {
"keyStorePassword"
);
private static final String SENSITIVE_VALUE_OUTPUT = "[*****]";
// For troubleshooting, enables like this: -DmidpointPrintSensitiveValues
// For troubleshooting, enables like this: -Dmidpoint.printSensitiveValues
private static final boolean PRINT_SENSITIVE_VALUES =
System.getProperty("midpointPrintSensitiveValues") != null;
System.getProperty("midpoint.printSensitiveValues") != null
// old, but left for compatibility in 4.4 LTS
|| System.getProperty("midpointPrintSensitiveValues") != null;

private boolean silent = false;

Expand Down

0 comments on commit f3d1698

Please sign in to comment.