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)
This commit is contained in:
Maxim Dobryakov
2018-02-20 22:59:36 +03:00
parent 39b72eed62
commit 26df2f3c23

View File

@@ -310,7 +310,7 @@ public class OpenSSHKnownHosts
protected final PublicKey key; protected final PublicKey key;
private final KnownHostMatchers.HostMatcher matcher; private final KnownHostMatchers.HostMatcher matcher;
HostEntry(Marker marker, String hostPart, KeyType type, PublicKey key) throws SSHException { public HostEntry(Marker marker, String hostPart, KeyType type, PublicKey key) throws SSHException {
this.marker = marker; this.marker = marker;
this.hostPart = hostPart; this.hostPart = hostPart;
this.type = type; this.type = type;