59 throw new AssertionError(roe); 60 } 61 62 try { 63 return (Negotiator) (c.newInstance(hci)); 64 } catch (ReflectiveOperationException roe) { 65 finest(roe); 66 Throwable t = roe.getCause(); 67 if (t != null && t instanceof Exception) 68 finest((Exception)t); 69 return null; 70 } 71 } 72 73 public abstract byte[] firstToken() throws IOException; 74 75 public abstract byte[] nextToken(byte[] in) throws IOException; 76 77 private static void finest(Exception e) { 78 PlatformLogger logger = HttpURLConnection.getHttpLogger(); 79 logger.finest("NegotiateAuthentication: " + e); 80 } 81 } 82 | 59 throw new AssertionError(roe); 60 } 61 62 try { 63 return (Negotiator) (c.newInstance(hci)); 64 } catch (ReflectiveOperationException roe) { 65 finest(roe); 66 Throwable t = roe.getCause(); 67 if (t != null && t instanceof Exception) 68 finest((Exception)t); 69 return null; 70 } 71 } 72 73 public abstract byte[] firstToken() throws IOException; 74 75 public abstract byte[] nextToken(byte[] in) throws IOException; 76 77 private static void finest(Exception e) { 78 PlatformLogger logger = HttpURLConnection.getHttpLogger(); 79 if (logger.isLoggable(PlatformLogger.FINEST)) { 80 logger.finest("NegotiateAuthentication: " + e); 81 } 82 } 83 } 84 |