@Override public String toString() { return getConfigLine(); }
@Override public String toString() { return getConfigLine(); }
String line = entry.getConfigLine(); byte[] lineData = line.getBytes(StandardCharsets.UTF_8); boolean reuseExisting = Files.exists(file) && (Files.size(file) > 0);
String line = entry.getConfigLine(); byte[] lineData = line.getBytes(StandardCharsets.UTF_8); boolean reuseExisting = Files.exists(file) && (Files.size(file) > 0);
LOG.warn(format( SshdText.get().knownHostsUnknownKeyType, path, entry.getConfigLine())); } else { newEntries.add(new HostEntryPair(entry, serverKey)); path, entry.getConfigLine()));
throws IOException { KnownHostEntry hostEntry = entry.getHostEntry(); String oldLine = hostEntry.getConfigLine(); String newLine = helper.prepareModifiedServerKeyLine(clientSession, remoteAddress, hostEntry, oldLine, entry.getServerKey(),
log.warn("findKnownHostEntry({})[{}] failed ({}) to check host={} for entry={}: {}", clientSession, remoteAddress, e.getClass().getSimpleName(), host, entry.getConfigLine(), e.getMessage()); if (debugEnabled) { log.debug("findKnownHostEntry(" + clientSession + ") host=" + host + ", entry=" + entry + " match failure details", e);
log.warn("findKnownHostEntry({})[{}] failed ({}) to check host={} for entry={}: {}", clientSession, remoteAddress, e.getClass().getSimpleName(), host, entry.getConfigLine(), e.getMessage()); if (debugEnabled) { log.debug("findKnownHostEntry(" + clientSession + ") host=" + host + ", entry=" + entry + " match failure details", e);
throws Exception { KnownHostEntry entry = match.getHostEntry(); String matchLine = ValidateUtils.checkNotNullAndNotEmpty(entry.getConfigLine(), "No entry config line"); String newLine = prepareModifiedServerKeyLine( clientSession, remoteAddress, entry, matchLine, match.getServerKey(), actual);
throws Exception { KnownHostEntry entry = match.getHostEntry(); String matchLine = ValidateUtils.checkNotNullAndNotEmpty(entry.getConfigLine(), "No entry config line"); String newLine = prepareModifiedServerKeyLine(clientSession, remoteAddress, entry, matchLine, match.getServerKey(), actual); if (GenericUtils.isEmpty(newLine)) {
StandardCharsets.UTF_8))) { writer.newLine(); writer.write(entry.getConfigLine()); writer.newLine();