Class AbstractKnownHostsProvider
java.lang.Object
org.apache.maven.wagon.providers.ssh.knownhost.AbstractKnownHostsProvider
- All Implemented Interfaces:
KnownHostsProvider
- Direct Known Subclasses:
NullKnownHostProvider,SingleKnownHostProvider,StreamKnownHostsProvider
Common base for known hosts providers.
- Author:
- Brett Porter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringthe known hosts, in the openssh formatprotected Set<KnownHostEntry> Fields inherited from interface org.apache.maven.wagon.providers.ssh.knownhost.KnownHostsProvider
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKnownHost(KnownHostEntry knownHost) voidsetHostKeyChecking(String hostKeyChecking) voidstoreKnownHosts(String contents)
-
Field Details
-
contents
the known hosts, in the openssh format -
knownHosts
-
-
Constructor Details
-
AbstractKnownHostsProvider
public AbstractKnownHostsProvider()
-
-
Method Details
-
setHostKeyChecking
- Specified by:
setHostKeyCheckingin interfaceKnownHostsProvider
-
getHostKeyChecking
- Specified by:
getHostKeyCheckingin interfaceKnownHostsProvider
-
getContents
- Specified by:
getContentsin interfaceKnownHostsProvider
-
storeKnownHosts
- Specified by:
storeKnownHostsin interfaceKnownHostsProvider- Throws:
IOException
-
addKnownHost
- Specified by:
addKnownHostin interfaceKnownHostsProvider- Throws:
IOException
-