com.jcraft.jsch.KnownHosts.HashedHostKey Class Reference

Inheritance diagram for com.jcraft.jsch.KnownHosts.HashedHostKey:
Inheritance graph
[legend]
Collaboration diagram for com.jcraft.jsch.KnownHosts.HashedHostKey:
Collaboration graph
[legend]

List of all members.

Public Member Functions

String getHost ()
 returns the name of the host.
String getType ()
 returns the type of the key.
String getKey ()
 returns a base64-representation of the key.
String getFingerPrint (JSch jsch)
 returns the key's fingerprint (i.e.

Static Public Attributes

static final int SSHDSS = 1
 Type constant for a DSS key.
static final int SSHRSA = 2
 Type constant for a DSA key.

Protected Attributes

String host
 the host list
int type
 the type of this key.
byte[] key
 the key data

Static Protected Attributes

static final int GUESS = 0
 Type constant for "try to guess the type".

Package Functions

 HashedHostKey (String host, byte[] key) throws JSchException
 HashedHostKey (String host, int type, byte[] key) throws JSchException
boolean isMatched (String _host)
 checks if the key applies to some host.
boolean isHashed ()
void hash ()

Package Attributes

byte[] salt = null
byte[] hash = null

Static Package Attributes

static final int UNKNOWN = 3
 Type constant for a key of unknown type.

Private Attributes

boolean hashed = false

Static Private Attributes

static final String HASH_MAGIC = "|1|"
static final String HASH_DELIM = "|"

Detailed Description

Definition at line 434 of file KnownHosts.java.


Constructor & Destructor Documentation

com.jcraft.jsch.KnownHosts.HashedHostKey.HashedHostKey ( String  host,
byte[]  key 
) throws JSchException [package]
com.jcraft.jsch.KnownHosts.HashedHostKey.HashedHostKey ( String  host,
int  type,
byte[]  key 
) throws JSchException [package]

Member Function Documentation

String com.jcraft.jsch.HostKey.getFingerPrint ( JSch  jsch  )  [inherited]

returns the key's fingerprint (i.e.

a lowercase hexadecimal representation of the MD5 of the key.)

Definition at line 115 of file HostKey.java.

References com.jcraft.jsch.HostKey.key.

String com.jcraft.jsch.HostKey.getHost (  )  [inherited]

returns the name of the host.

Definition at line 92 of file HostKey.java.

References com.jcraft.jsch.HostKey.host.

Referenced by com.jcraft.jsch.KnownHosts.add(), com.jcraft.jsch.KnownHosts.dump(), and com.jcraft.jsch.KnownHosts.remove().

String com.jcraft.jsch.HostKey.getKey (  )  [inherited]

returns a base64-representation of the key.

Definition at line 107 of file HostKey.java.

References com.jcraft.jsch.HostKey.key.

Referenced by com.jcraft.jsch.KnownHosts.dump().

String com.jcraft.jsch.HostKey.getType (  )  [inherited]
boolean com.jcraft.jsch.KnownHosts.HashedHostKey.isHashed (  )  [package]

Definition at line 486 of file KnownHosts.java.

References com.jcraft.jsch.KnownHosts.HashedHostKey.hashed.

boolean com.jcraft.jsch.KnownHosts.HashedHostKey.isMatched ( String  _host  )  [package]

Member Data Documentation

final int com.jcraft.jsch.HostKey.GUESS = 0 [static, protected, inherited]

Type constant for "try to guess the type".

Definition at line 44 of file HostKey.java.

Referenced by com.jcraft.jsch.KnownHosts.HashedHostKey.HashedHostKey(), and com.jcraft.jsch.HostKey.HostKey().

Definition at line 440 of file KnownHosts.java.

Referenced by com.jcraft.jsch.KnownHosts.createHashedHostKey().

final String com.jcraft.jsch.KnownHosts.HashedHostKey.HASH_DELIM = "|" [static, private]
final String com.jcraft.jsch.KnownHosts.HashedHostKey.HASH_MAGIC = "|1|" [static, private]
String com.jcraft.jsch.HostKey.host [protected, inherited]
byte [] com.jcraft.jsch.HostKey.key [protected, inherited]
final int com.jcraft.jsch.HostKey.SSHDSS = 1 [static, inherited]

Type constant for a DSS key.

Definition at line 46 of file HostKey.java.

Referenced by com.jcraft.jsch.HostKey.getType(), and com.jcraft.jsch.HostKey.HostKey().

final int com.jcraft.jsch.HostKey.SSHRSA = 2 [static, inherited]

Type constant for a DSA key.

Definition at line 48 of file HostKey.java.

Referenced by com.jcraft.jsch.HostKey.getType(), and com.jcraft.jsch.HostKey.HostKey().

int com.jcraft.jsch.HostKey.type [protected, inherited]
final int com.jcraft.jsch.HostKey.UNKNOWN = 3 [static, package, inherited]

Type constant for a key of unknown type.

Definition at line 50 of file HostKey.java.


The documentation for this class was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1