Class HostKey

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String comment  
      static int ECDSA256  
      static int ECDSA384  
      static int ECDSA521  
      protected static int GUESS  
      protected java.lang.String host  
      protected byte[] key  
      protected java.lang.String marker  
      private static byte[][] names  
      static int SSHDSS  
      static int SSHRSA  
      protected int type  
      (package private) static int UNKNOWN  
    • Constructor Summary

      Constructors 
      Constructor Description
      HostKey​(java.lang.String host, byte[] key)  
      HostKey​(java.lang.String host, int type, byte[] key)  
      HostKey​(java.lang.String host, int type, byte[] key, java.lang.String comment)  
      HostKey​(java.lang.String marker, java.lang.String host, int type, byte[] key, java.lang.String comment)  
    • Constructor Detail

      • HostKey

        public HostKey​(java.lang.String host,
                       int type,
                       byte[] key,
                       java.lang.String comment)
                throws JSchException
        Throws:
        JSchException
      • HostKey

        public HostKey​(java.lang.String marker,
                       java.lang.String host,
                       int type,
                       byte[] key,
                       java.lang.String comment)
                throws JSchException
        Throws:
        JSchException
    • Method Detail

      • getHost

        public java.lang.String getHost()
      • getType

        public java.lang.String getType()
      • name2type

        protected static int name2type​(java.lang.String name)
      • getKey

        public java.lang.String getKey()
      • getFingerPrint

        public java.lang.String getFingerPrint​(JSch jsch)
      • getComment

        public java.lang.String getComment()
      • getMarker

        public java.lang.String getMarker()
      • isMatched

        boolean isMatched​(java.lang.String _host)
      • isIncluded

        private boolean isIncluded​(java.lang.String _host)