mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 15:20:54 +03:00
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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user