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

AbstractGeneratorHostKeyProvider

protected AbstractGeneratorHostKeyProvider(java.lang.String path,
                                           java.lang.String algorithm)

AbstractGeneratorHostKeyProvider

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

getPath

public java.lang.String getPath()

setPath

public void setPath(java.lang.String path)

getAlgorithm

public java.lang.String getAlgorithm()

setAlgorithm

public void setAlgorithm(java.lang.String algorithm)

getKeySize

public int getKeySize()

setKeySize

public void setKeySize(int keySize)

doReadKeyPair

protected abstract java.security.KeyPair doReadKeyPair(java.io.InputStream is)
                                                throws java.lang.Exception
Throws:
java.lang.Exception

doWriteKeyPair

protected abstract void doWriteKeyPair(java.security.KeyPair kp,
                                       java.io.OutputStream os)
                                throws java.lang.Exception
Throws:
java.lang.Exception

loadKeys

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


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