|
SSH Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jscape.inet.ssh.util.SshHostKeys
Associative host keys store. Contains host addresses with
associated host keys as one-to-one map.
Supports serialization for simplifying physical save/restore process.
Methods of this class are not thread-safe.
All methods throw NullPointerException if some object
parameter is null and IllegalArgumentException
if some parameter doesn't correspond to the method contract.
| Constructor Summary | |
SshHostKeys()
|
|
| Method Summary | |
void |
addKey(java.net.InetAddress host,
java.lang.String fingerprint)
Adds a new key entry to the store. |
void |
clear()
Clears the store contents. |
java.lang.Object |
clone()
|
boolean |
containsKey(java.net.InetAddress host,
java.lang.String fingerprint)
Checks if the store contains the specified host key. |
java.util.Iterator |
getHosts()
Returns current hosts collection contained in the store. |
java.util.Iterator |
getKeys(java.net.InetAddress host)
Returns keys iterator for the specified host. |
void |
removeKey(java.net.InetAddress host,
java.lang.String fingerprint)
Removes the key entry for the specified host. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SshHostKeys()
| Method Detail |
public void addKey(java.net.InetAddress host,
java.lang.String fingerprint)
host - the host addressfingerprint - host key fingerprint string
public void removeKey(java.net.InetAddress host,
java.lang.String fingerprint)
host - target hostfingerprint - key fingerprint to removepublic void clear()
public java.util.Iterator getKeys(java.net.InetAddress host)
host - target host
public boolean containsKey(java.net.InetAddress host,
java.lang.String fingerprint)
host - hostfingerprint - host key fingerprint
true if the store contains the specified key;
false otherwisepublic java.util.Iterator getHosts()
public java.lang.Object clone()
Object#clone()public java.lang.String toString()
Object.toString()
|
SSH Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||