com.jcraft.jsch
Class KnownHosts

java.lang.Object
  extended by 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
 
Constructor Summary
KnownHosts(JSch jsch)
           
 
Method Summary
 void add(java.lang.String host, byte[] key, UserInfo userinfo)
           
 int check(java.lang.String host, byte[] key)
           
(package private)  void dump(java.io.OutputStream out)
           
 HostKey[] getHostKey()
           
 HostKey[] getHostKey(java.lang.String host, java.lang.String type)
           
(package private)  java.lang.String getKnownHostsFile()
           
 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)
           
(package private)  void setKnownHosts(java.io.InputStream foo)
           
(package private)  void setKnownHosts(java.lang.String foo)
           
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
 

Constructor Detail

KnownHosts

KnownHosts(JSch jsch)
Method Detail

setKnownHosts

void setKnownHosts(java.lang.String foo)
             throws JSchException
Throws:
JSchException

setKnownHosts

void setKnownHosts(java.io.InputStream foo)
             throws JSchException
Throws:
JSchException

getKnownHostsFile

java.lang.String getKnownHostsFile()

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,
                UserInfo userinfo)
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

sync

protected void sync()
             throws java.io.IOException
Throws:
java.io.IOException

sync

protected void sync(java.lang.String foo)
             throws java.io.IOException
Throws:
java.io.IOException

dump

void dump(java.io.OutputStream out)
    throws java.io.IOException
Throws:
java.io.IOException


Copyright 2006 jcraft. All Rights Reserved.