Class TrustedKeyFetcher
- java.lang.Object
-
- com.atlassian.bamboo.plugins.git.jgit.transport.TrustedKeyFetcher
-
- All Implemented Interfaces:
com.jcraft.jsch.HostKeyRepository
public class TrustedKeyFetcher extends Object implements com.jcraft.jsch.HostKeyRepository
Used to fetch public key of remote server when SSH connection used.
-
-
Constructor Summary
Constructors Constructor Description TrustedKeyFetcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(com.jcraft.jsch.HostKey hostkey, com.jcraft.jsch.UserInfo ui)intcheck(String host, byte[] key)com.jcraft.jsch.HostKey[]getHostKey()com.jcraft.jsch.HostKey[]getHostKey(String host, String type)TrustedKeygetKey()StringgetKnownHostsRepositoryID()voidremove(String host, String type)voidremove(String host, String type, byte[] key)
-
-
-
Method Detail
-
check
public int check(String host, byte[] key)
- Specified by:
checkin interfacecom.jcraft.jsch.HostKeyRepository
-
add
public void add(com.jcraft.jsch.HostKey hostkey, com.jcraft.jsch.UserInfo ui)- Specified by:
addin interfacecom.jcraft.jsch.HostKeyRepository
-
remove
public void remove(String host, String type)
- Specified by:
removein interfacecom.jcraft.jsch.HostKeyRepository
-
remove
public void remove(String host, String type, byte[] key)
- Specified by:
removein interfacecom.jcraft.jsch.HostKeyRepository
-
getKnownHostsRepositoryID
public String getKnownHostsRepositoryID()
- Specified by:
getKnownHostsRepositoryIDin interfacecom.jcraft.jsch.HostKeyRepository
-
getHostKey
public com.jcraft.jsch.HostKey[] getHostKey()
- Specified by:
getHostKeyin interfacecom.jcraft.jsch.HostKeyRepository
-
getHostKey
public com.jcraft.jsch.HostKey[] getHostKey(String host, String type)
- Specified by:
getHostKeyin interfacecom.jcraft.jsch.HostKeyRepository
-
getKey
public TrustedKey getKey()
-
-