public abstract class AbstractGeneratorHostKeyProvider extends AbstractKeyPairProvider
logSSH_DSS, SSH_RSA| Modifier | Constructor and Description |
|---|---|
protected |
AbstractGeneratorHostKeyProvider() |
protected |
AbstractGeneratorHostKeyProvider(String path) |
protected |
AbstractGeneratorHostKeyProvider(String path,
String algorithm) |
protected |
AbstractGeneratorHostKeyProvider(String path,
String algorithm,
int keySize) |
| Modifier and Type | Method and Description |
|---|---|
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) |
getKeyType, getKeyTypes, loadKeyprotected AbstractGeneratorHostKeyProvider()
protected AbstractGeneratorHostKeyProvider(String path)
protected AbstractGeneratorHostKeyProvider(String path, String algorithm)
public String getPath()
public void setPath(String path)
public String getAlgorithm()
public void setAlgorithm(String algorithm)
public int getKeySize()
public void setKeySize(int keySize)
protected abstract KeyPair doReadKeyPair(InputStream is) throws Exception
Exceptionprotected abstract void doWriteKeyPair(KeyPair kp, OutputStream os) throws Exception
Exceptionpublic KeyPair[] loadKeys()
loadKeys in class AbstractKeyPairProviderCopyright © 2008-2012 Apache Software Foundation. All Rights Reserved.