com.jcraft.jsch
Class HostKey

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

public class HostKey
extends java.lang.Object


Field Summary
protected  java.lang.String comment
           
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
           
 
Constructor Summary
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
 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()
           
 
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

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 Detail

HostKey

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

HostKey

public HostKey(java.lang.String host,
               int type,
               byte[] key)
        throws JSchException
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 Detail

getHost

public java.lang.String getHost()

getType

public java.lang.String getType()

getKey

public java.lang.String getKey()

getFingerPrint

public java.lang.String getFingerPrint(JSch jsch)

getComment

public java.lang.String getComment()

getMarker

public java.lang.String getMarker()