MCPcopy Create free account
hub / github.com/TigerVNC/tigervnc / getType

Method getType

java/com/jcraft/jsch/HostKey.java:85–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84 public String getHost(){ return host; }
85 public String getType(){
86 if(type==SSHDSS ||
87 type==SSHRSA ||
88 type==ECDSA256 ||
89 type==ECDSA384 ||
90 type==ECDSA521){
91 return Util.byte2str(names[type-1]);
92 }
93 return "UNKNOWN";
94 }
95 protected static int name2type(String name){
96 for(int i = 0; i < names.length; i++){
97 if(Util.byte2str(names[i]).equals(name)){

Callers 3

getHostKeyMethod · 0.95
removeMethod · 0.95
dumpMethod · 0.95

Calls 1

byte2strMethod · 0.95

Tested by

no test coverage detected