public String getFingerPrint(SshClient jsch) { IHASH hash = null; try { hash = (IHASH)Activator.CreateInstance(Type.GetType(jsch.getConfig("md5"))); } catch (Exception e) { Console.Error.WriteLine("getFingerPrint: " + e); } return(StringAux.getFingerPrint(hash, key)); }
public String getFingerPrint() { if (hash == null) { hash = genHash(); } byte[] kblob = getPublicKeyBlob(); if (kblob == null) { return(null); } return(getKeySize() + " " + StringAux.getFingerPrint(hash, kblob)); }
public String getFingerPrint() { IHASH hash = null; try { Type t = Type.GetType(session.getConfig("md5")); hash = (IHASH)(Activator.CreateInstance(t)); } catch (Exception e) { Console.Error.WriteLine("getFingerPrint: " + e); } return(StringAux.getFingerPrint(hash, getHostKey())); }