public class FileKnownHostsProvider extends StreamKnownHostsProvider
contents, knownHostsROLE| 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) |
loadKnownHostsgetContents, getHostKeyChecking, setHostKeyCheckingpublic FileKnownHostsProvider(java.io.File file)
throws java.io.IOException
file - the file that holds the known hosts, in the openssh formatjava.io.IOExceptionpublic FileKnownHostsProvider()
throws java.io.IOException
java.io.IOExceptionFileKnownHostsProvider(File)public void storeKnownHosts(java.lang.String contents)
throws java.io.IOException
storeKnownHosts in interface KnownHostsProviderstoreKnownHosts in class AbstractKnownHostsProviderjava.io.IOExceptionpublic java.io.File getFile()
Copyright © 2003-2013. All Rights Reserved.