changeset 51398 | 3c389a284345 |
parent 50508 | 6aa873a6dae9 |
child 55354 | 74f0622db875 |
--- a/src/java.security.jgss/share/classes/sun/security/jgss/wrapper/SunNativeProvider.java Tue Aug 14 14:28:23 2018 +0200 +++ b/src/java.security.jgss/share/classes/sun/security/jgss/wrapper/SunNativeProvider.java Tue Aug 14 22:39:34 2018 +0800 @@ -51,8 +51,6 @@ private static final String INFO = "Sun Native GSS provider"; private static final String MF_CLASS = "sun.security.jgss.wrapper.NativeGSSFactory"; - private static final String LIB_PROP = "sun.security.jgss.lib"; - private static final String DEBUG_PROP = "sun.security.nativegss.debug"; private static final HashMap<String, String> MECH_MAP; static final Provider INSTANCE; static boolean DEBUG; @@ -70,8 +68,8 @@ AccessController.doPrivileged( new PrivilegedAction<HashMap<String, String>>() { public HashMap<String, String> run() { - DEBUG = Boolean.parseBoolean - (System.getProperty(DEBUG_PROP)); + DEBUG = Boolean.parseBoolean( + System.getProperty("sun.security.nativegss.debug")); try { System.loadLibrary("j2gss"); } catch (Error err) { @@ -80,7 +78,8 @@ return null; } String[] gssLibs = new String[0]; - String defaultLib = System.getProperty(LIB_PROP); + String defaultLib + = System.getProperty("sun.security.jgss.lib"); if (defaultLib == null || defaultLib.trim().equals("")) { String osname = System.getProperty("os.name"); if (osname.startsWith("SunOS")) {