org.apache.sshd.server.keyprovider
Class AbstractGeneratorHostKeyProvider
java.lang.Object
org.apache.sshd.common.keyprovider.AbstractKeyPairProvider
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractGeneratorHostKeyProvider
protected AbstractGeneratorHostKeyProvider()
AbstractGeneratorHostKeyProvider
protected AbstractGeneratorHostKeyProvider(String path)
AbstractGeneratorHostKeyProvider
protected AbstractGeneratorHostKeyProvider(String path,
String algorithm)
AbstractGeneratorHostKeyProvider
protected AbstractGeneratorHostKeyProvider(String path,
String algorithm,
int keySize)
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.