Class KnownHosts

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) class  KnownHosts.HashedHostKey  
    • Constructor Summary

      Constructors 
      Constructor Description
      KnownHosts​(JSch jsch)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(HostKey hostkey, UserInfo userinfo)
      Adds a host key hostkey
      private void addInvalidLine​(java.lang.String line)  
      int check​(java.lang.String host, byte[] key)
      Checks if host is included with the key.
      (package private) HostKey createHashedHostKey​(java.lang.String host, byte[] key)  
      private java.lang.String deleteSubString​(java.lang.String hosts, java.lang.String host)  
      (package private) void dump​(java.io.OutputStream out)  
      private MAC getHMACSHA1()  
      HostKey[] getHostKey()
      Retuns a list for host keys managed in this repository.
      HostKey[] getHostKey​(java.lang.String host, java.lang.String type)
      Retuns a list for host keys managed in this repository.
      (package private) java.lang.String getKnownHostsFile()  
      java.lang.String getKnownHostsRepositoryID()
      Returns id of this repository.
      void remove​(java.lang.String host, java.lang.String type)
      Removes a host key if there exists mached key with host, type.
      void remove​(java.lang.String host, java.lang.String type, byte[] key)
      Removes a host key if there exists a matched key with host, type and key.
      (package private) void setKnownHosts​(java.io.InputStream input)  
      (package private) void setKnownHosts​(java.lang.String filename)  
      protected void sync()  
      protected void sync​(java.lang.String foo)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • jsch

        private JSch jsch
      • known_hosts

        private java.lang.String known_hosts
      • pool

        private java.util.Vector pool
      • hmacsha1

        private MAC hmacsha1
      • space

        private static final byte[] space
      • cr

        private static final byte[] cr
    • Constructor Detail

      • KnownHosts

        KnownHosts​(JSch jsch)