public class MaverickHostKeyManager extends AbstractHostKeyManager
SshHostKeyManager interface.HASH_DELIM, HASH_MAGIC| Constructor and Description |
|---|
MaverickHostKeyManager(SshConfiguration configuration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(SshHostKey hostKey,
boolean persist)
Add a key, optionally persisting it to some kind of backing store.
|
protected boolean |
checkHost(java.lang.String storedHostName,
java.lang.String hostToCheck) |
SshHostKey[] |
getKeys()
Get all valid host keys.
|
boolean |
isWriteable()
Get if this host key manager allows keys to be persisted.
|
void |
remove(SshHostKey hostKey)
Remove a key.
|
doGetKeysForHost, getConfiguration, getKeysForHostpublic MaverickHostKeyManager(SshConfiguration configuration) throws SshException
configuration - configurationSshExceptionpublic void add(SshHostKey hostKey, boolean persist) throws SshException
SshHostKeyManagerhostKey - key to addpersist - persist the keySshException - on any error adding the keypublic SshHostKey[] getKeys()
SshHostKeyManagerSshHostKey objects.
This list will consist of both permanent and temporary keys and is
guaranteed to be non-null.public boolean isWriteable()
SshHostKeyManagerSshHostKeyManager.add(SshHostKey, boolean)public void remove(SshHostKey hostKey) throws SshException
SshHostKeyManagerhostKey - key to removeSshExceptionprotected boolean checkHost(java.lang.String storedHostName,
java.lang.String hostToCheck)
checkHost in class AbstractHostKeyManagerCopyright © 2018. All rights reserved.