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 String
the 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 TypeMethodDescriptionvoid
addKnownHost
(KnownHostEntry knownHost) void
setHostKeyChecking
(String hostKeyChecking) void
storeKnownHosts
(String contents)
-
Field Details
-
contents
the known hosts, in the openssh format -
knownHosts
-
-
Constructor Details
-
AbstractKnownHostsProvider
public AbstractKnownHostsProvider()
-
-
Method Details
-
setHostKeyChecking
- Specified by:
setHostKeyChecking
in interfaceKnownHostsProvider
-
getHostKeyChecking
- Specified by:
getHostKeyChecking
in interfaceKnownHostsProvider
-
getContents
- Specified by:
getContents
in interfaceKnownHostsProvider
-
storeKnownHosts
- Specified by:
storeKnownHosts
in interfaceKnownHostsProvider
- Throws:
IOException
-
addKnownHost
- Specified by:
addKnownHost
in interfaceKnownHostsProvider
- Throws:
IOException
-