org.apache.maven.wagon.providers.ssh.knownhost

Class FileKnownHostsProvider

public class FileKnownHostsProvider extends StreamKnownHostsProvider

Provides known hosts from a file

Since: Sep 12, 2005

Author: Juan F. Codagnone

Field Summary
Filefile
Constructor Summary
FileKnownHostsProvider(File file)
Creates the FileKnownHostsProvider.
FileKnownHostsProvider()
Creates a FileKnownHostsProvider using as file openssh knwon_host
Method Summary
FilegetFile()
voidstoreKnownHosts(String contents)

Field Detail

file

private final File file

Constructor Detail

FileKnownHostsProvider

public FileKnownHostsProvider(File file)
Creates the FileKnownHostsProvider.

Parameters: file the file that holds the known hosts, in the openssh format

Throws: IOException

FileKnownHostsProvider

public FileKnownHostsProvider()
Creates a FileKnownHostsProvider using as file openssh knwon_host

Throws: IOException

See Also: FileKnownHostsProvider

Method Detail

getFile

public File getFile()

storeKnownHosts

public void storeKnownHosts(String contents)