mirror of
https://codeberg.org/PGPainless/cert-d-java.git
synced 2024-11-25 17:02:05 +01:00
Make trust-root constant in SpecialNames
This commit is contained in:
parent
96b22ff40a
commit
bc20b95839
1 changed files with 5 additions and 2 deletions
|
@ -9,11 +9,14 @@ import java.util.Map;
|
|||
|
||||
public class SpecialNames {
|
||||
|
||||
public static final String TRUST_ROOT = "trust-root";
|
||||
|
||||
// Map to allow for potentially upper- and lowercase variants of the same special name
|
||||
private static final Map<String, String> SPECIAL_NAMES = new HashMap<>();
|
||||
|
||||
static {
|
||||
SPECIAL_NAMES.put("TRUST-ROOT", "trust-root"); // TODO: Remove
|
||||
SPECIAL_NAMES.put("trust-root", "trust-root");
|
||||
SPECIAL_NAMES.put("TRUST-ROOT", TRUST_ROOT); // TODO: Remove
|
||||
SPECIAL_NAMES.put(TRUST_ROOT, TRUST_ROOT);
|
||||
}
|
||||
|
||||
public static String lookupSpecialName(String specialName) {
|
||||
|
|
Loading…
Reference in a new issue