public class HostKey
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected java.lang.String |
comment |
static int |
ECDSA256 |
static int |
ECDSA384 |
static int |
ECDSA521 |
protected static int |
GUESS |
protected java.lang.String |
host |
protected byte[] |
key |
protected java.lang.String |
marker |
static int |
SSHDSS |
static int |
SSHRSA |
protected int |
type |
构造器和说明 |
---|
HostKey(java.lang.String host,
byte[] key) |
HostKey(java.lang.String host,
int type,
byte[] key) |
HostKey(java.lang.String host,
int type,
byte[] key,
java.lang.String comment) |
HostKey(java.lang.String marker,
java.lang.String host,
int type,
byte[] key,
java.lang.String comment) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getComment() |
java.lang.String |
getFingerPrint(JSch jsch) |
java.lang.String |
getHost() |
java.lang.String |
getKey() |
java.lang.String |
getMarker() |
java.lang.String |
getType() |
protected static int |
name2type(java.lang.String name) |
protected static final int GUESS
public static final int SSHDSS
public static final int SSHRSA
public static final int ECDSA256
public static final int ECDSA384
public static final int ECDSA521
protected java.lang.String marker
protected java.lang.String host
protected int type
protected byte[] key
protected java.lang.String comment
public HostKey(java.lang.String host, byte[] key) throws JSchException
JSchException
public HostKey(java.lang.String host, int type, byte[] key) throws JSchException
JSchException
public HostKey(java.lang.String host, int type, byte[] key, java.lang.String comment) throws JSchException
JSchException
public HostKey(java.lang.String marker, java.lang.String host, int type, byte[] key, java.lang.String comment) throws JSchException
JSchException
public java.lang.String getHost()
public java.lang.String getType()
protected static int name2type(java.lang.String name)
public java.lang.String getKey()
public java.lang.String getFingerPrint(JSch jsch)
public java.lang.String getComment()
public java.lang.String getMarker()