equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
62 |
62 |
63 private static final Debug debug = Debug.getInstance("x509", "\t[AVA]"); |
63 private static final Debug debug = Debug.getInstance("x509", "\t[AVA]"); |
64 // See CR 6391482: if enabled this flag preserves the old but incorrect |
64 // See CR 6391482: if enabled this flag preserves the old but incorrect |
65 // PrintableString encoding for DomainComponent. It may need to be set to |
65 // PrintableString encoding for DomainComponent. It may need to be set to |
66 // avoid breaking preexisting certificates generated with sun.security APIs. |
66 // avoid breaking preexisting certificates generated with sun.security APIs. |
67 private static final boolean PRESERVE_OLD_DC_ENCODING = |
67 private static final boolean PRESERVE_OLD_DC_ENCODING = GetBooleanAction |
68 AccessController.doPrivileged(new GetBooleanAction |
68 .privilegedGetProperty("com.sun.security.preserveOldDCEncoding"); |
69 ("com.sun.security.preserveOldDCEncoding")); |
|
70 |
69 |
71 /** |
70 /** |
72 * DEFAULT format allows both RFC1779 and RFC2253 syntax and |
71 * DEFAULT format allows both RFC1779 and RFC2253 syntax and |
73 * additional keywords. |
72 * additional keywords. |
74 */ |
73 */ |