Package com.jcraft.jsch
Class HostKey
java.lang.Object
com.jcraft.jsch.HostKey
public class HostKey
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringcommentstatic intECDSA256static intECDSA384static intECDSA521static intED25519static intED448static intGUESSprotected java.lang.Stringhostprotected byte[]keyprotected java.lang.Stringmarkerstatic intSSHDSSstatic intSSHRSAprotected inttypestatic intUNKNOWN -
Constructor Summary
Constructors Constructor Description 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) -
Method Summary
Modifier and Type Method Description java.lang.StringgetComment()java.lang.StringgetFingerPrint(JSch jsch)java.lang.StringgetHost()java.lang.StringgetKey()java.lang.StringgetMarker()java.lang.StringgetType()protected static intname2type(java.lang.String name)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
UNKNOWN
public static final int UNKNOWN- See Also:
- Constant Field Values
-
GUESS
public static final int GUESS- See Also:
- Constant Field Values
-
SSHDSS
public static final int SSHDSS- See Also:
- Constant Field Values
-
SSHRSA
public static final int SSHRSA- See Also:
- Constant Field Values
-
ECDSA256
public static final int ECDSA256- See Also:
- Constant Field Values
-
ECDSA384
public static final int ECDSA384- See Also:
- Constant Field Values
-
ECDSA521
public static final int ECDSA521- See Also:
- Constant Field Values
-
ED25519
public static final int ED25519- See Also:
- Constant Field Values
-
ED448
public static final int ED448- See Also:
- Constant Field Values
-
marker
protected java.lang.String marker -
host
protected java.lang.String host -
type
protected int type -
key
protected byte[] key -
comment
protected java.lang.String comment
-
-
Constructor Details
-
HostKey
- Throws:
JSchException
-
HostKey
- Throws:
JSchException
-
HostKey
public HostKey(java.lang.String host, int type, byte[] key, java.lang.String comment) throws JSchException- Throws:
JSchException
-
HostKey
public HostKey(java.lang.String marker, java.lang.String host, int type, byte[] key, java.lang.String comment) throws JSchException- Throws:
JSchException
-
-
Method Details
-
getHost
public java.lang.String getHost() -
getType
public java.lang.String getType() -
name2type
protected static int name2type(java.lang.String name) -
getKey
public java.lang.String getKey() -
getFingerPrint
-
getComment
public java.lang.String getComment() -
getMarker
public java.lang.String getMarker()
-