com.jcraft.jsch
Class KnownHosts
java.lang.Object
com.jcraft.jsch.KnownHosts
- All Implemented Interfaces:
- HostKeyRepository
public class KnownHosts
- extends Object
- implements HostKeyRepository
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getKnownHostsRepositoryID
public String getKnownHostsRepositoryID()
- Specified by:
getKnownHostsRepositoryID
in interface HostKeyRepository
check
public int check(String host,
byte[] key)
- Specified by:
check
in interface HostKeyRepository
add
public void add(HostKey hostkey,
UserInfo userinfo)
- Specified by:
add
in interface HostKeyRepository
getHostKey
public HostKey[] getHostKey()
- Specified by:
getHostKey
in interface HostKeyRepository
getHostKey
public HostKey[] getHostKey(String host,
String type)
- Specified by:
getHostKey
in interface HostKeyRepository
remove
public void remove(String host,
String type)
- Specified by:
remove
in interface HostKeyRepository
remove
public void remove(String host,
String type,
byte[] key)
- Specified by:
remove
in interface HostKeyRepository
sync
protected void sync()
throws IOException
- Throws:
IOException
sync
protected void sync(String foo)
throws IOException
- Throws:
IOException
Copyright © 2013 JCraft,Inc.. All Rights Reserved.