org.apache.sshd.server.keyprovider
Class AbstractGeneratorHostKeyProvider

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

public abstract class AbstractGeneratorHostKeyProvider
extends AbstractKeyPairProvider

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
protected AbstractGeneratorHostKeyProvider()
           
protected AbstractGeneratorHostKeyProvider(String path)
           
protected AbstractGeneratorHostKeyProvider(String path, String algorithm)
           
protected AbstractGeneratorHostKeyProvider(String path, String algorithm, int keySize)
           
 
Method Summary
protected abstract  KeyPair doReadKeyPair(InputStream is)
           
protected abstract  void doWriteKeyPair(KeyPair kp, OutputStream os)
           
 String getAlgorithm()
           
 int getKeySize()
           
 String getPath()
           
 KeyPair[] loadKeys()
           
 void setAlgorithm(String algorithm)
           
 void setKeySize(int keySize)
           
 void setPath(String path)
           
 
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

AbstractGeneratorHostKeyProvider

protected AbstractGeneratorHostKeyProvider()

AbstractGeneratorHostKeyProvider

protected AbstractGeneratorHostKeyProvider(String path)

AbstractGeneratorHostKeyProvider

protected AbstractGeneratorHostKeyProvider(String path,
                                           String algorithm)

AbstractGeneratorHostKeyProvider

protected AbstractGeneratorHostKeyProvider(String path,
                                           String algorithm,
                                           int keySize)
Method Detail

getPath

public String getPath()

setPath

public void setPath(String path)

getAlgorithm

public String getAlgorithm()

setAlgorithm

public void setAlgorithm(String algorithm)

getKeySize

public int getKeySize()

setKeySize

public void setKeySize(int keySize)

doReadKeyPair

protected abstract KeyPair doReadKeyPair(InputStream is)
                                  throws Exception
Throws:
Exception

doWriteKeyPair

protected abstract void doWriteKeyPair(KeyPair kp,
                                       OutputStream os)
                                throws Exception
Throws:
Exception

loadKeys

public KeyPair[] loadKeys()
Specified by:
loadKeys in class AbstractKeyPairProvider


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