public abstract class AbstractGeneratorHostKeyProvider extends AbstractKeyPairProvider
logECDSA_SHA2_NISTP256, ECDSA_SHA2_NISTP384, ECDSA_SHA2_NISTP521, 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() |
AlgorithmParameterSpec |
getKeySpec() |
String |
getPath() |
boolean |
isOverwriteAllowed() |
Iterable<KeyPair> |
loadKeys()
Load available keys.
|
void |
setAlgorithm(String algorithm) |
void |
setKeySize(int keySize) |
void |
setKeySpec(AlgorithmParameterSpec keySpec) |
void |
setOverwriteAllowed(boolean overwriteAllowed) |
void |
setPath(String path) |
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)
public AlgorithmParameterSpec getKeySpec()
public void setKeySpec(AlgorithmParameterSpec keySpec)
public boolean isOverwriteAllowed()
public void setOverwriteAllowed(boolean overwriteAllowed)
protected abstract KeyPair doReadKeyPair(InputStream is) throws Exception
Exceptionprotected abstract void doWriteKeyPair(KeyPair kp, OutputStream os) throws Exception
Exceptionpublic Iterable<KeyPair> loadKeys()
KeyPairProviderloadKeys in interface KeyPairProviderloadKeys in class AbstractKeyPairProvidernullCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.