()
| 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)){ |
no test coverage detected