Class KnownHosts

java.lang.Object
com.jcraft.jsch.KnownHosts
All Implemented Interfaces:
HostKeyRepository

public class KnownHosts
extends java.lang.Object
implements HostKeyRepository
  • Field Summary

    Fields inherited from interface com.jcraft.jsch.HostKeyRepository

    CHANGED, NOT_INCLUDED, OK
  • Method Summary

    Modifier and Type Method Description
    void add​(HostKey hostkey, UserInfo userinfo)
    Adds a host key hostkey
    int check​(java.lang.String host, byte[] key)
    Checks if host is included with the key.
    HostKey[] getHostKey()
    Retuns a list for host keys managed in this repository.
    HostKey[] getHostKey​(java.lang.String host, java.lang.String type)
    Retuns a list for host keys managed in this repository.
    java.lang.String getKnownHostsRepositoryID()
    Returns id of this repository.
    void remove​(java.lang.String host, java.lang.String type)
    Removes a host key if there exists mached key with host, type.
    void remove​(java.lang.String host, java.lang.String type, byte[] key)
    Removes a host key if there exists a matched key with host, type and key.
    protected void sync()  
    protected void sync​(java.lang.String foo)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait