com.jcraft.jsch

Interface HostKeyRepository

Known Implementing Classes:
KnownHosts

public interface HostKeyRepository

Field Summary

static int
CHANGED
static int
NOT_INCLUDED
static int
OK

Method Summary

void
add(String host, byte[] key, UserInfo ui)
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)

Field Details

CHANGED

public static final int CHANGED
Field Value:
2

NOT_INCLUDED

public static final int NOT_INCLUDED
Field Value:
1

OK

public static final int OK
Field Value:
0

Method Details

add

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

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)