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

Class AbstractKnownHostsProvider

Implemented Interfaces:
KnownHostsProvider
Known Direct Subclasses:
NullKnownHostProvider, SingleKnownHostProvider, StreamKnownHostsProvider

public abstract class AbstractKnownHostsProvider
extends java.lang.Object
implements KnownHostsProvider

Common base for known hosts providers.
Version:
$Id: AbstractKnownHostsProvider.java 477186 2006-11-20 14:14:45Z brett $
Author:
Brett Porter

Field Summary

protected String
contents
the known hosts, in the openssh format

Fields inherited from interface org.apache.maven.wagon.providers.ssh.knownhost.KnownHostsProvider

ROLE

Method Summary

String
getContents()
String
getHostKeyChecking()
void
setHostKeyChecking(String hostKeyChecking)
void
storeKnownHosts(String contents)

Field Details

contents

protected String contents
the known hosts, in the openssh format

Method Details

getContents

public String getContents()
Specified by:
getContents in interface KnownHostsProvider

getHostKeyChecking

public String getHostKeyChecking()
Specified by:
getHostKeyChecking in interface KnownHostsProvider

setHostKeyChecking

public void setHostKeyChecking(String hostKeyChecking)
Specified by:
setHostKeyChecking in interface KnownHostsProvider

storeKnownHosts

public void storeKnownHosts(String contents)
            throws IOException
Specified by:
storeKnownHosts in interface KnownHostsProvider