public abstract class AbstractKnownHostsProvider extends Object implements KnownHostsProvider
| Modifier and Type | Field and Description | 
|---|---|
| protected String | contentsthe known hosts, in the openssh format | 
| protected Set<KnownHostEntry> | knownHosts | 
ROLE| Constructor and Description | 
|---|
| AbstractKnownHostsProvider() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addKnownHost(KnownHostEntry knownHost) | 
| String | getContents() | 
| String | getHostKeyChecking() | 
| void | setHostKeyChecking(String hostKeyChecking) | 
| void | storeKnownHosts(String contents) | 
protected Set<KnownHostEntry> knownHosts
public AbstractKnownHostsProvider()
public void setHostKeyChecking(String hostKeyChecking)
setHostKeyChecking in interface KnownHostsProviderpublic String getHostKeyChecking()
getHostKeyChecking in interface KnownHostsProviderpublic String getContents()
getContents in interface KnownHostsProviderpublic void storeKnownHosts(String contents) throws IOException
storeKnownHosts in interface KnownHostsProviderIOExceptionpublic void addKnownHost(KnownHostEntry knownHost) throws IOException
addKnownHost in interface KnownHostsProviderIOExceptionCopyright © 2003–2022 The Apache Software Foundation. All rights reserved.