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 Details

    • TrustedKeyFetcher

      public TrustedKeyFetcher()
  • Method Details

    • check

      public int check(String host, byte[] key)
      Specified by:
      check in interface com.jcraft.jsch.HostKeyRepository
    • add

      public void add(com.jcraft.jsch.HostKey hostkey, com.jcraft.jsch.UserInfo ui)
      Specified by:
      add in interface com.jcraft.jsch.HostKeyRepository
    • remove

      public void remove(String host, String type)
      Specified by:
      remove in interface com.jcraft.jsch.HostKeyRepository
    • remove

      public void remove(String host, String type, byte[] key)
      Specified by:
      remove in interface com.jcraft.jsch.HostKeyRepository
    • getKnownHostsRepositoryID

      public String getKnownHostsRepositoryID()
      Specified by:
      getKnownHostsRepositoryID in interface com.jcraft.jsch.HostKeyRepository
    • getHostKey

      public com.jcraft.jsch.HostKey[] getHostKey()
      Specified by:
      getHostKey in interface com.jcraft.jsch.HostKeyRepository
    • getHostKey

      public com.jcraft.jsch.HostKey[] getHostKey(String host, String type)
      Specified by:
      getHostKey in interface com.jcraft.jsch.HostKeyRepository
    • getKey

      public TrustedKey getKey()