Skip to content

Commit 26df2f3

Browse files
committed
HostEntry constructor must be public
Reasons: 1) SimpleEntry (was replaced to HostEntry) class had public constructor 2) HostEntry class can be used outside of sshj library to add entries to .known_hosts file (i.e. for implementation of interactive HostKeyVerifier)
1 parent 39b72ee commit 26df2f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/schmizz/sshj/transport/verification/OpenSSHKnownHosts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ public static class HostEntry implements KnownHostEntry {
310310
protected final PublicKey key;
311311
private final KnownHostMatchers.HostMatcher matcher;
312312

313-
HostEntry(Marker marker, String hostPart, KeyType type, PublicKey key) throws SSHException {
313+
public HostEntry(Marker marker, String hostPart, KeyType type, PublicKey key) throws SSHException {
314314
this.marker = marker;
315315
this.hostPart = hostPart;
316316
this.type = type;

0 commit comments

Comments
 (0)