org.apache.sshd.server.keyprovider
Class SimpleGeneratorHostKeyProvider

java.lang.Object
  extended by org.apache.sshd.common.keyprovider.AbstractKeyPairProvider
      extended by org.apache.sshd.server.keyprovider.AbstractGeneratorHostKeyProvider
          extended by org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider
All Implemented Interfaces:
KeyPairProvider

public class SimpleGeneratorHostKeyProvider
extends AbstractGeneratorHostKeyProvider

TODO Add javadoc

Author:
Apache MINA SSHD Project

Field Summary
 
Fields inherited from interface org.apache.sshd.common.KeyPairProvider
SSH_DSS, SSH_RSA
 
Constructor Summary
SimpleGeneratorHostKeyProvider()
           
SimpleGeneratorHostKeyProvider(String path)
           
SimpleGeneratorHostKeyProvider(String path, String algorithm)
           
SimpleGeneratorHostKeyProvider(String path, String algorithm, int keySize)
           
 
Method Summary
protected  KeyPair doReadKeyPair(InputStream is)
           
protected  void doWriteKeyPair(KeyPair kp, OutputStream os)
           
 
Methods inherited from class org.apache.sshd.server.keyprovider.AbstractGeneratorHostKeyProvider
getAlgorithm, getKeySize, getPath, loadKeys, setAlgorithm, setKeySize, setPath
 
Methods inherited from class org.apache.sshd.common.keyprovider.AbstractKeyPairProvider
getKeyType, getKeyTypes, loadKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleGeneratorHostKeyProvider

public SimpleGeneratorHostKeyProvider()

SimpleGeneratorHostKeyProvider

public SimpleGeneratorHostKeyProvider(String path)

SimpleGeneratorHostKeyProvider

public SimpleGeneratorHostKeyProvider(String path,
                                      String algorithm)

SimpleGeneratorHostKeyProvider

public SimpleGeneratorHostKeyProvider(String path,
                                      String algorithm,
                                      int keySize)
Method Detail

doReadKeyPair

protected KeyPair doReadKeyPair(InputStream is)
                         throws Exception
Specified by:
doReadKeyPair in class AbstractGeneratorHostKeyProvider
Throws:
Exception

doWriteKeyPair

protected void doWriteKeyPair(KeyPair kp,
                              OutputStream os)
                       throws Exception
Specified by:
doWriteKeyPair in class AbstractGeneratorHostKeyProvider
Throws:
Exception


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.