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

Method name2type

java/com/jcraft/jsch/HostKey.java:95–102  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

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)){
98 return i + 1;
99 }
100 }
101 return UNKNOWN;
102 }
103 public String getKey(){
104 return Util.byte2str(Util.toBase64(key, 0, key.length));
105 }

Callers 1

setKnownHostsMethod · 0.95

Calls 2

byte2strMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected