public abstract class AbstractGeneratorHostKeyProvider extends AbstractKeyPairProvider
log
SSH_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, loadKey
protected 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
Exception
protected abstract void doWriteKeyPair(KeyPair kp, OutputStream os) throws Exception
Exception
public KeyPair[] loadKeys()
loadKeys
in class AbstractKeyPairProvider
Copyright © 2008–2013 The Apache Software Foundation. All rights reserved.