com.jcraft.jsch
Interface HostKeyRepository

All Known Implementing Classes:
KnownHosts

public interface HostKeyRepository


Field Summary
static int CHANGED
           
static int NOT_INCLUDED
           
static int OK
           
 
Method Summary
 void add(java.lang.String host, byte[] key, UserInfo ui)
           
 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)
           
 

Field Detail

OK

public static final int OK
See Also:
Constant Field Values

NOT_INCLUDED

public static final int NOT_INCLUDED
See Also:
Constant Field Values

CHANGED

public static final int CHANGED
See Also:
Constant Field Values
Method Detail

check

public int check(java.lang.String host,
                 byte[] key)

add

public void add(java.lang.String host,
                byte[] key,
                UserInfo ui)

remove

public void remove(java.lang.String host,
                   java.lang.String type)

remove

public void remove(java.lang.String host,
                   java.lang.String type,
                   byte[] key)

getKnownHostsRepositoryID

public java.lang.String getKnownHostsRepositoryID()

getHostKey

public HostKey[] getHostKey()

getHostKey

public HostKey[] getHostKey(java.lang.String host,
                            java.lang.String type)