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 HostKeyRepository
public int check(java.lang.String host, byte[] key)
check
in interface HostKeyRepository
public void add(HostKey hostkey, UserInfo userinfo)
add
in interface HostKeyRepository
public HostKey[] getHostKey()
getHostKey
in interface HostKeyRepository
public HostKey[] getHostKey(java.lang.String host, java.lang.String type)
getHostKey
in interface HostKeyRepository
public void remove(java.lang.String host, java.lang.String type)
remove
in interface HostKeyRepository
public void remove(java.lang.String host, java.lang.String type, byte[] key)
remove
in interface HostKeyRepository
protected void sync() throws java.io.IOException
java.io.IOException
protected void sync(java.lang.String foo) throws java.io.IOException
java.io.IOException