net.ssh.jsch
Class KnownHosts

java.lang.Object
  extended by net.ssh.jsch.KnownHosts
All Implemented Interfaces:
HostKeyRepository

public class KnownHosts
extends java.lang.Object
implements HostKeyRepository


Field Summary
 
Fields inherited from interface net.ssh.jsch.HostKeyRepository
CHANGED, NOT_INCLUDED, OK
 
Method Summary
 void add(java.lang.String host, byte[] key)
           
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getKnownHostsRepositoryID

public java.lang.String getKnownHostsRepositoryID()
Specified by:
getKnownHostsRepositoryID in interface HostKeyRepository

check

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

add

public void add(java.lang.String host,
                byte[] key)
Specified by:
add in interface HostKeyRepository

getHostKey

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

getHostKey

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

remove

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

remove

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