public class TrustedKeyFetcher extends Object implements com.jcraft.jsch.HostKeyRepository
Constructor and Description |
---|
TrustedKeyFetcher() |
Modifier and Type | Method and Description |
---|---|
void |
add(com.jcraft.jsch.HostKey hostkey,
com.jcraft.jsch.UserInfo ui) |
int |
check(String host,
byte[] key) |
com.jcraft.jsch.HostKey[] |
getHostKey() |
com.jcraft.jsch.HostKey[] |
getHostKey(String host,
String type) |
TrustedKey |
getKey() |
String |
getKnownHostsRepositoryID() |
void |
remove(String host,
String type) |
void |
remove(String host,
String type,
byte[] key) |
public int check(String host, byte[] key)
check
in interface com.jcraft.jsch.HostKeyRepository
public void add(com.jcraft.jsch.HostKey hostkey, com.jcraft.jsch.UserInfo ui)
add
in interface com.jcraft.jsch.HostKeyRepository
public void remove(String host, String type)
remove
in interface com.jcraft.jsch.HostKeyRepository
public void remove(String host, String type, byte[] key)
remove
in interface com.jcraft.jsch.HostKeyRepository
public String getKnownHostsRepositoryID()
getKnownHostsRepositoryID
in interface com.jcraft.jsch.HostKeyRepository
public com.jcraft.jsch.HostKey[] getHostKey()
getHostKey
in interface com.jcraft.jsch.HostKeyRepository
public com.jcraft.jsch.HostKey[] getHostKey(String host, String type)
getHostKey
in interface com.jcraft.jsch.HostKeyRepository
public TrustedKey getKey()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.