public class HostKey extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
comment |
static int |
ECDSA256 |
static int |
ECDSA384 |
static int |
ECDSA521 |
protected static int |
GUESS |
protected String |
host |
protected byte[] |
key |
protected String |
marker |
static int |
SSHDSS |
static int |
SSHRSA |
protected int |
type |
Constructor and Description |
---|
HostKey(String host,
byte[] key) |
HostKey(String host,
int type,
byte[] key) |
HostKey(String host,
int type,
byte[] key,
String comment) |
HostKey(String marker,
String host,
int type,
byte[] key,
String comment) |
Modifier and Type | Method and Description |
---|---|
String |
getComment() |
String |
getFingerPrint(JSch jsch) |
String |
getHost() |
String |
getKey() |
String |
getMarker() |
String |
getType() |
protected static int |
name2type(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 String marker
protected String host
protected int type
protected byte[] key
protected String comment
public HostKey(String host, byte[] key) throws JSchException
JSchException
public HostKey(String host, int type, byte[] key) throws JSchException
JSchException
public HostKey(String host, int type, byte[] key, String comment) throws JSchException
JSchException
public HostKey(String marker, String host, int type, byte[] key, String comment) throws JSchException
JSchException
Copyright © 2024 JCraft,Inc.. All rights reserved.