jdk/src/java.base/share/classes/sun/security/util/Debug.java
changeset 37593 824750ada3d6
parent 32649 2ee9017c7597
child 37781 71ed5645f17c
equal deleted inserted replaced
37592:c80f098887f4 37593:824750ada3d6
    27 
    27 
    28 import java.math.BigInteger;
    28 import java.math.BigInteger;
    29 import java.util.regex.Pattern;
    29 import java.util.regex.Pattern;
    30 import java.util.regex.Matcher;
    30 import java.util.regex.Matcher;
    31 import java.util.Locale;
    31 import java.util.Locale;
       
    32 import sun.security.action.GetPropertyAction;
    32 
    33 
    33 /**
    34 /**
    34  * A utility class for debuging.
    35  * A utility class for debuging.
    35  *
    36  *
    36  * @author Roland Schemers
    37  * @author Roland Schemers
    40     private String prefix;
    41     private String prefix;
    41 
    42 
    42     private static String args;
    43     private static String args;
    43 
    44 
    44     static {
    45     static {
    45         args = java.security.AccessController.doPrivileged
    46         args = GetPropertyAction.getProperty("java.security.debug");
    46                 (new sun.security.action.GetPropertyAction
    47 
    47                 ("java.security.debug"));
    48         String args2 =
    48 
    49                 GetPropertyAction.getProperty("java.security.auth.debug");
    49         String args2 = java.security.AccessController.doPrivileged
       
    50                 (new sun.security.action.GetPropertyAction
       
    51                 ("java.security.auth.debug"));
       
    52 
    50 
    53         if (args == null) {
    51         if (args == null) {
    54             args = args2;
    52             args = args2;
    55         } else {
    53         } else {
    56             if (args2 != null)
    54             if (args2 != null)