jdk/src/share/classes/sun/security/jgss/wrapper/SunNativeProvider.java
changeset 10336 0bb1999251f8
parent 9035 1255eb81cc2f
child 12047 320a714614e9
equal deleted inserted replaced
10335:3c7eda3ab2f5 10336:0bb1999251f8
    50     private static final String INFO = "Sun Native GSS provider";
    50     private static final String INFO = "Sun Native GSS provider";
    51     private static final String MF_CLASS =
    51     private static final String MF_CLASS =
    52         "sun.security.jgss.wrapper.NativeGSSFactory";
    52         "sun.security.jgss.wrapper.NativeGSSFactory";
    53     private static final String LIB_PROP = "sun.security.jgss.lib";
    53     private static final String LIB_PROP = "sun.security.jgss.lib";
    54     private static final String DEBUG_PROP = "sun.security.nativegss.debug";
    54     private static final String DEBUG_PROP = "sun.security.nativegss.debug";
    55     private static HashMap MECH_MAP;
    55     private static HashMap<String, String> MECH_MAP;
    56     static final Provider INSTANCE = new SunNativeProvider();
    56     static final Provider INSTANCE = new SunNativeProvider();
    57     static boolean DEBUG;
    57     static boolean DEBUG;
    58     static void debug(String message) {
    58     static void debug(String message) {
    59         if (DEBUG) {
    59         if (DEBUG) {
    60             if (message == null) {
    60             if (message == null) {
    64         }
    64         }
    65     }
    65     }
    66 
    66 
    67     static {
    67     static {
    68         MECH_MAP =
    68         MECH_MAP =
    69             AccessController.doPrivileged(new PrivilegedAction<HashMap>() {
    69             AccessController.doPrivileged(
    70                     public HashMap run() {
    70                 new PrivilegedAction<HashMap<String, String>>() {
       
    71                     public HashMap<String, String> run() {
    71                         DEBUG = Boolean.parseBoolean
    72                         DEBUG = Boolean.parseBoolean
    72                             (System.getProperty(DEBUG_PROP));
    73                             (System.getProperty(DEBUG_PROP));
    73                         try {
    74                         try {
    74                             System.loadLibrary("j2gss");
    75                             System.loadLibrary("j2gss");
    75                         } catch (Error err) {
    76                         } catch (Error err) {