getFingerPrint() static private method

static private getFingerPrint ( Tamir.SharpSsh.jsch.HASH hash, byte data ) : String
hash Tamir.SharpSsh.jsch.HASH
data byte
return String
Esempio n. 1
0
        public String getFingerPrint(JSch jsch)
        {
            HASH hash = null;

            try{
                hash = (HASH)Activator.CreateInstance(Type.GetType(jsch.getConfig("md5")));
            }
            catch (Exception e) { Console.Error.WriteLine("getFingerPrint: " + e); }
            return(Util.getFingerPrint(hash, key));
        }
Esempio n. 2
0
        public String getFingerPrint()
        {
            HASH hash = null;

            try
            {
                hash = new Tamir.SharpSsh.jsch.jce.MD5();
            }
            catch (Exception e) { Console.Error.WriteLine("getFingerPrint: " + e); }
            return(Util.getFingerPrint(hash, getHostKey()));
        }
Esempio n. 3
0
        public String getFingerPrint()
        {
            HASH hash = null;

            try
            {
                Type t = Type.GetType(session.getConfig("md5"));
                hash = (HASH)(Activator.CreateInstance(t));
            }
            catch (Exception e) { Console.Error.WriteLine("getFingerPrint: " + e); }
            return(Util.getFingerPrint(hash, getHostKey()));
        }
Esempio n. 4
0
 public String getFingerPrint()
 {
     if (hash == null)
     {
         hash = genHash();
     }
     byte[] kblob = getPublicKeyBlob();
     if (kblob == null)
     {
         return(null);
     }
     return(getKeySize() + " " + Util.getFingerPrint(hash, kblob));
 }