org.apache.sshd.server.keyprovider
Class PEMGeneratorHostKeyProvider

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.PEMGeneratorHostKeyProvider
All Implemented Interfaces:
KeyPairProvider

public class PEMGeneratorHostKeyProvider
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
PEMGeneratorHostKeyProvider()
           
PEMGeneratorHostKeyProvider(String path)
           
PEMGeneratorHostKeyProvider(String path, String algorithm)
           
PEMGeneratorHostKeyProvider(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

PEMGeneratorHostKeyProvider

public PEMGeneratorHostKeyProvider()

PEMGeneratorHostKeyProvider

public PEMGeneratorHostKeyProvider(String path)

PEMGeneratorHostKeyProvider

public PEMGeneratorHostKeyProvider(String path,
                                   String algorithm)

PEMGeneratorHostKeyProvider

public PEMGeneratorHostKeyProvider(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.