com.jcraft.jsch
Class HostKey

java.lang.Object
  extended by com.jcraft.jsch.HostKey

public class HostKey
extends Object


Field Summary
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 Summary
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)
           
 
Method Summary
 String getComment()
           
 String getFingerPrint(JSch jsch)
           
 String getHost()
           
 String getKey()
           
 String getMarker()
           
 String getType()
           
protected static int name2type(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GUESS

protected 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

marker

protected String marker

host

protected String host

type

protected int type

key

protected byte[] key

comment

protected String comment
Constructor Detail

HostKey

public HostKey(String host,
               byte[] key)
        throws JSchException
Throws:
JSchException

HostKey

public HostKey(String host,
               int type,
               byte[] key)
        throws JSchException
Throws:
JSchException

HostKey

public HostKey(String host,
               int type,
               byte[] key,
               String comment)
        throws JSchException
Throws:
JSchException

HostKey

public HostKey(String marker,
               String host,
               int type,
               byte[] key,
               String comment)
        throws JSchException
Throws:
JSchException
Method Detail

getHost

public String getHost()

getType

public String getType()

name2type

protected static int name2type(String name)

getKey

public String getKey()

getFingerPrint

public String getFingerPrint(JSch jsch)

getComment

public String getComment()

getMarker

public String getMarker()


Copyright © 2016 JCraft,Inc.. All Rights Reserved.