if ( getKnownHostsProvider() != null )
{
PrintWriter w = new PrintWriter( stringWriter );
HostKeyRepository hkr = sch.getHostKeyRepository();
HostKey[] keys = hkr.getHostKey();
for ( int i = 0; keys != null && i < keys.length; i++ )
{
HostKey key = keys[i];
w.println( key.getHost() + " " + key.getType() + " " + key.getKey() );