125 fiveArg = cl.getConstructor(boolean.class,
126 String.class,
127 int.class,
128 PasswordAuthentication.class);
129 supportsTA = cl.getDeclaredMethod(supportsTAStr);
130 isTrustedSite = cl.getDeclaredMethod(isTrustedSiteStr, java.net.URL.class);
131 return new NTLMAuthenticationProxy(threeArg,
132 fiveArg);
133 }
134 } catch (ClassNotFoundException cnfe) {
135 finest(cnfe);
136 } catch (ReflectiveOperationException roe) {
137 throw new AssertionError(roe);
138 }
139
140 return null;
141 }
142
143 static void finest(Exception e) {
144 PlatformLogger logger = HttpURLConnection.getHttpLogger();
145 if (logger.isLoggable(PlatformLogger.FINEST)) {
146 logger.finest("NTLMAuthenticationProxy: " + e);
147 }
148 }
149 }
|
125 fiveArg = cl.getConstructor(boolean.class,
126 String.class,
127 int.class,
128 PasswordAuthentication.class);
129 supportsTA = cl.getDeclaredMethod(supportsTAStr);
130 isTrustedSite = cl.getDeclaredMethod(isTrustedSiteStr, java.net.URL.class);
131 return new NTLMAuthenticationProxy(threeArg,
132 fiveArg);
133 }
134 } catch (ClassNotFoundException cnfe) {
135 finest(cnfe);
136 } catch (ReflectiveOperationException roe) {
137 throw new AssertionError(roe);
138 }
139
140 return null;
141 }
142
143 static void finest(Exception e) {
144 PlatformLogger logger = HttpURLConnection.getHttpLogger();
145 if (logger.isLoggable(PlatformLogger.Level.FINEST)) {
146 logger.finest("NTLMAuthenticationProxy: " + e);
147 }
148 }
149 }
|