Class FileKnownHostsProvider
java.lang.Object
org.apache.maven.wagon.providers.ssh.knownhost.AbstractKnownHostsProvider
org.apache.maven.wagon.providers.ssh.knownhost.StreamKnownHostsProvider
org.apache.maven.wagon.providers.ssh.knownhost.FileKnownHostsProvider
- All Implemented Interfaces:
KnownHostsProvider
Provides known hosts from a file
- Since:
- Sep 12, 2005
- Author:
- Juan F. Codagnone
-
Field Summary
Fields inherited from class org.apache.maven.wagon.providers.ssh.knownhost.AbstractKnownHostsProvider
contents, knownHosts
Fields inherited from interface org.apache.maven.wagon.providers.ssh.knownhost.KnownHostsProvider
ROLE
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a FileKnownHostsProvider using as file openssh knwon_hostFileKnownHostsProvider
(File file) Creates the FileKnownHostsProvider. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addKnownHost
(KnownHostEntry knownHostEntry) getFile()
void
storeKnownHosts
(String contents) Methods inherited from class org.apache.maven.wagon.providers.ssh.knownhost.StreamKnownHostsProvider
loadKnownHosts
Methods inherited from class org.apache.maven.wagon.providers.ssh.knownhost.AbstractKnownHostsProvider
getContents, getHostKeyChecking, setHostKeyChecking
-
Constructor Details
-
FileKnownHostsProvider
Creates the FileKnownHostsProvider.- Parameters:
file
- the file that holds the known hosts, in the openssh format- Throws:
IOException
-
FileKnownHostsProvider
Creates a FileKnownHostsProvider using as file openssh knwon_host- Throws:
IOException
- See Also:
-
-
Method Details
-
storeKnownHosts
- Specified by:
storeKnownHosts
in interfaceKnownHostsProvider
- Overrides:
storeKnownHosts
in classAbstractKnownHostsProvider
- Throws:
IOException
-
addKnownHost
- Specified by:
addKnownHost
in interfaceKnownHostsProvider
- Overrides:
addKnownHost
in classAbstractKnownHostsProvider
- Throws:
IOException
-
getFile
-