The KnownHostsManager type exposes the following members.
Constructors
Name | Description | |
---|---|---|
KnownHostsManager | Initializes a new instance of the KnownHostsManager class |
Methods
Name | Description | |
---|---|---|
Add |
Add the hostname along with its public key to the hashtable
| |
AddHostKey |
Add the key for this host
| |
AddKnownHost(String, array<Byte>[]()[][]) |
Add a hostname/public key pair to the known hosts data.
| |
AddKnownHost(String, String) |
Add a hostname/public key pair to the known hosts data.
| |
ClearKnownHosts |
Clear all loaded known hosts from the internal list.
| |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
IsKeyLoaded |
Determines if this key is loaded for this host
| |
LoadKnownHosts(Stream) |
Read the known hosts file to obtain the host public keys.
| |
LoadKnownHosts(String) |
Read the given known hosts file to obtain the host public keys.
| |
MemberwiseClone | (Inherited from Object.) | |
ToString |
Represent the instance as a string.
(Overrides Object..::..ToString()()()().) | |
WriteKnownHosts |
Write the known hosts to file, together with their public keys, in the
standard known_hosts format.
|
Properties
Name | Description | |
---|---|---|
KnownHostsFile |
Name of file containing the list of known hosts and their public keys
that was most recently loaded.
| |
NumHosts |
Number of known hosts names and IP addresses that have been loaded.
|