com.jcraft.jsch

Class KnownHosts

public class KnownHosts extends Object implements HostKeyRepository

Method Summary
voidadd(String host, byte[] key, UserInfo userinfo)
intcheck(String host, byte[] key)
HostKey[]getHostKey()
HostKey[]getHostKey(String host, String type)
StringgetKnownHostsRepositoryID()
voidremove(String host, String type)
voidremove(String host, String type, byte[] key)
protected voidsync()
protected voidsync(String foo)

Method Detail

add

public void add(String host, byte[] key, UserInfo userinfo)

check

public int check(String host, byte[] key)

getHostKey

public HostKey[] getHostKey()

getHostKey

public HostKey[] getHostKey(String host, String type)

getKnownHostsRepositoryID

public String getKnownHostsRepositoryID()

remove

public void remove(String host, String type)

remove

public void remove(String host, String type, byte[] key)

sync

protected void sync()

sync

protected void sync(String foo)