public class KnownHosts extends java.lang.Object implements HostKeyRepository
CHANGED, NOT_INCLUDED, OK| Modifier and Type | Method and Description |
|---|---|
void |
add(HostKey hostkey,
UserInfo userinfo) |
int |
check(java.lang.String host,
byte[] key) |
HostKey[] |
getHostKey() |
HostKey[] |
getHostKey(java.lang.String host,
java.lang.String type) |
java.lang.String |
getKnownHostsRepositoryID() |
void |
remove(java.lang.String host,
java.lang.String type) |
void |
remove(java.lang.String host,
java.lang.String type,
byte[] key) |
protected void |
sync() |
protected void |
sync(java.lang.String foo) |
public java.lang.String getKnownHostsRepositoryID()
getKnownHostsRepositoryID in interface HostKeyRepositorypublic int check(java.lang.String host,
byte[] key)
check in interface HostKeyRepositorypublic void add(HostKey hostkey, UserInfo userinfo)
add in interface HostKeyRepositorypublic HostKey[] getHostKey()
getHostKey in interface HostKeyRepositorypublic HostKey[] getHostKey(java.lang.String host, java.lang.String type)
getHostKey in interface HostKeyRepositorypublic void remove(java.lang.String host,
java.lang.String type)
remove in interface HostKeyRepositorypublic void remove(java.lang.String host,
java.lang.String type,
byte[] key)
remove in interface HostKeyRepositoryprotected void sync()
throws java.io.IOException
java.io.IOExceptionprotected void sync(java.lang.String foo)
throws java.io.IOException
java.io.IOException