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

java.lang.Object
  extended by org.apache.maven.wagon.providers.ssh.knownhost.AbstractKnownHostsProvider
All Implemented Interfaces:
KnownHostsProvider
Direct Known Subclasses:
NullKnownHostProvider, SingleKnownHostProvider, StreamKnownHostsProvider

public abstract class AbstractKnownHostsProvider
extends Object
implements KnownHostsProvider

Common base for known hosts providers.

Version:
$Id: AbstractKnownHostsProvider.java 1172843 2011-09-19 21:28:04Z hboutemy $
Author:
Brett Porter

Field Summary
protected  String contents
          the known hosts, in the openssh format
protected  Set<KnownHostEntry> knownHosts
           
 
Fields inherited from interface org.apache.maven.wagon.providers.ssh.knownhost.KnownHostsProvider
ROLE
 
Constructor Summary
AbstractKnownHostsProvider()
           
 
Method Summary
 String getContents()
           
 String getHostKeyChecking()
           
 void setHostKeyChecking(String hostKeyChecking)
           
 void storeKnownHosts(String contents)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contents

protected String contents
the known hosts, in the openssh format


knownHosts

protected Set<KnownHostEntry> knownHosts
Constructor Detail

AbstractKnownHostsProvider

public AbstractKnownHostsProvider()
Method Detail

setHostKeyChecking

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

getHostKeyChecking

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

getContents

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

storeKnownHosts

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


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.