org.apache.maven.wagon.providers.ssh.knownhost
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
public class FileKnownHostsProvider
- extends StreamKnownHostsProvider
Provides known hosts from a file
- Since:
- Sep 12, 2005
- Author:
- Juan F. Codagnone
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileKnownHostsProvider
public FileKnownHostsProvider(File file)
throws IOException
- Creates the FileKnownHostsProvider.
- Parameters:
file
- the file that holds the known hosts, in the openssh format
- Throws:
IOException
FileKnownHostsProvider
public FileKnownHostsProvider()
throws IOException
- Creates a FileKnownHostsProvider using as file openssh knwon_host
- Throws:
IOException
- See Also:
FileKnownHostsProvider(File)
storeKnownHosts
public void storeKnownHosts(String contents)
throws IOException
- Specified by:
storeKnownHosts
in interface KnownHostsProvider
- Overrides:
storeKnownHosts
in class AbstractKnownHostsProvider
- Throws:
IOException
getFile
public File getFile()
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.