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 = "|" |
Definition at line 434 of file KnownHosts.java.
com.jcraft.jsch.KnownHosts.HashedHostKey.HashedHostKey | ( | String | host, | |
byte[] | key | |||
) | throws JSchException [package] |
Definition at line 443 of file KnownHosts.java.
References com.jcraft.jsch.HostKey.GUESS, com.jcraft.jsch.HostKey.host, and com.jcraft.jsch.HostKey.key.
com.jcraft.jsch.KnownHosts.HashedHostKey.HashedHostKey | ( | String | host, | |
int | type, | |||
byte[] | key | |||
) | throws JSchException [package] |
Definition at line 446 of file KnownHosts.java.
References com.jcraft.jsch.KnownHosts.HashedHostKey.hash(), com.jcraft.jsch.KnownHosts.HashedHostKey.HASH_DELIM, com.jcraft.jsch.KnownHosts.HashedHostKey.HASH_MAGIC, com.jcraft.jsch.KnownHosts.HashedHostKey.hashed, com.jcraft.jsch.HostKey.host, com.jcraft.jsch.HostKey.key, com.jcraft.jsch.KnownHosts.HashedHostKey.salt, and com.jcraft.jsch.HostKey.type.
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] |
returns the type of the key.
Definition at line 97 of file HostKey.java.
References com.jcraft.jsch.HostKey.sshdss, com.jcraft.jsch.HostKey.SSHDSS, com.jcraft.jsch.HostKey.sshrsa, com.jcraft.jsch.HostKey.SSHRSA, and com.jcraft.jsch.HostKey.type.
Referenced by com.jcraft.jsch.KnownHosts.dump(), com.jcraft.jsch.KnownHosts.getHostKey(), and com.jcraft.jsch.KnownHosts.remove().
void com.jcraft.jsch.KnownHosts.HashedHostKey.hash | ( | ) | [package] |
Definition at line 490 of file KnownHosts.java.
References com.jcraft.jsch.KnownHosts.getHMACSHA1(), com.jcraft.jsch.KnownHosts.HashedHostKey.HASH_DELIM, com.jcraft.jsch.KnownHosts.HashedHostKey.HASH_MAGIC, com.jcraft.jsch.KnownHosts.HashedHostKey.hashed, com.jcraft.jsch.HostKey.host, and com.jcraft.jsch.KnownHosts.HashedHostKey.salt.
Referenced by com.jcraft.jsch.KnownHosts.HashedHostKey.HashedHostKey(), and com.jcraft.jsch.KnownHosts.HashedHostKey.isMatched().
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] |
checks if the key applies to some host.
Reimplemented from com.jcraft.jsch.HostKey.
Definition at line 465 of file KnownHosts.java.
References com.jcraft.jsch.KnownHosts.getHMACSHA1(), com.jcraft.jsch.KnownHosts.HashedHostKey.hash(), com.jcraft.jsch.KnownHosts.HashedHostKey.hashed, and com.jcraft.jsch.KnownHosts.HashedHostKey.salt.
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().
byte [] com.jcraft.jsch.KnownHosts.HashedHostKey.hash = null [package] |
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] |
Definition at line 436 of file KnownHosts.java.
Referenced by com.jcraft.jsch.KnownHosts.HashedHostKey.hash(), and com.jcraft.jsch.KnownHosts.HashedHostKey.HashedHostKey().
final String com.jcraft.jsch.KnownHosts.HashedHostKey.HASH_MAGIC = "|1|" [static, private] |
Definition at line 435 of file KnownHosts.java.
Referenced by com.jcraft.jsch.KnownHosts.HashedHostKey.hash(), and com.jcraft.jsch.KnownHosts.HashedHostKey.HashedHostKey().
boolean com.jcraft.jsch.KnownHosts.HashedHostKey.hashed = false [private] |
String com.jcraft.jsch.HostKey.host [protected, inherited] |
the host list
Definition at line 53 of file HostKey.java.
Referenced by com.jcraft.jsch.HostKey.getHost(), com.jcraft.jsch.KnownHosts.HashedHostKey.hash(), com.jcraft.jsch.KnownHosts.HashedHostKey.HashedHostKey(), com.jcraft.jsch.HostKey.HostKey(), com.jcraft.jsch.HostKey.isIncluded(), and com.jcraft.jsch.KnownHosts.remove().
byte [] com.jcraft.jsch.HostKey.key [protected, inherited] |
the key data
Definition at line 57 of file HostKey.java.
Referenced by com.jcraft.jsch.KnownHosts.add(), com.jcraft.jsch.KnownHosts.check(), com.jcraft.jsch.HostKey.getFingerPrint(), com.jcraft.jsch.HostKey.getKey(), com.jcraft.jsch.KnownHosts.HashedHostKey.HashedHostKey(), com.jcraft.jsch.HostKey.HostKey(), and com.jcraft.jsch.KnownHosts.remove().
byte [] com.jcraft.jsch.KnownHosts.HashedHostKey.salt = null [package] |
Definition at line 439 of file KnownHosts.java.
Referenced by com.jcraft.jsch.KnownHosts.HashedHostKey.hash(), com.jcraft.jsch.KnownHosts.HashedHostKey.HashedHostKey(), and com.jcraft.jsch.KnownHosts.HashedHostKey.isMatched().
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] |
the type of this key.
Definition at line 55 of file HostKey.java.
Referenced by com.jcraft.jsch.KnownHosts.add(), com.jcraft.jsch.KnownHosts.check(), com.jcraft.jsch.KnownHosts.getHostKey(), com.jcraft.jsch.HostKey.getType(), com.jcraft.jsch.KnownHosts.HashedHostKey.HashedHostKey(), and com.jcraft.jsch.HostKey.HostKey().
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.