com.jcraft.jsch

Class KnownHosts

Implemented Interfaces:
HostKeyRepository

public class KnownHosts
extends java.lang.Object
implements HostKeyRepository

Fields inherited from interface com.jcraft.jsch.HostKeyRepository

CHANGED, NOT_INCLUDED, OK

Method Summary

void
add(String host, byte[] key, UserInfo userinfo)
int
check(String host, byte[] key)
HostKey[]
getHostKey()
HostKey[]
getHostKey(String host, String type)
String
getKnownHostsRepositoryID()
void
remove(String host, String type)
void
remove(String host, String type, byte[] key)
protected void
sync()
protected void
sync(String foo)

Method Details

add

public void add(String host,
                byte[] key,
                UserInfo userinfo)
Specified by:
add in interface HostKeyRepository

check

public int check(String host,
                 byte[] key)
Specified by:
check in interface HostKeyRepository

getHostKey

public HostKey[] getHostKey()
Specified by:
getHostKey in interface HostKeyRepository

getHostKey

public HostKey[] getHostKey(String host,
                            String type)
Specified by:
getHostKey in interface HostKeyRepository

getKnownHostsRepositoryID

public String getKnownHostsRepositoryID()
Specified by:
getKnownHostsRepositoryID in interface HostKeyRepository

remove

public void remove(String host,
                   String type)
Specified by:
remove in interface HostKeyRepository

remove

public void remove(String host,
                   String type,
                   byte[] key)
Specified by:
remove in interface HostKeyRepository

sync

protected void sync()
            throws IOException

sync

protected void sync(String foo)
            throws IOException