org.apache.maven.wagon.providers.ssh.knownhost
public class FileKnownHostsProvider extends StreamKnownHostsProvider
contents, knownHosts
ROLE
Constructor and Description |
---|
FileKnownHostsProvider()
Creates a FileKnownHostsProvider using as file openssh knwon_host
|
FileKnownHostsProvider(java.io.File file)
Creates the FileKnownHostsProvider.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile() |
void |
storeKnownHosts(java.lang.String contents) |
loadKnownHosts
getContents, getHostKeyChecking, setHostKeyChecking
public FileKnownHostsProvider(java.io.File file) throws java.io.IOException
file
- the file that holds the known hosts, in the openssh formatjava.io.IOException
public FileKnownHostsProvider() throws java.io.IOException
java.io.IOException
FileKnownHostsProvider(File)
public void storeKnownHosts(java.lang.String contents) throws java.io.IOException
storeKnownHosts
in interface KnownHostsProvider
storeKnownHosts
in class AbstractKnownHostsProvider
java.io.IOException
public java.io.File getFile()
Copyright © 2003-2014. All Rights Reserved.