public abstract class AbstractGeneratorHostKeyProvider extends AbstractKeyPairProvider
log
ECDSA_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() |
Iterable<KeyPair> |
loadKeys()
Load available keys.
|
void |
setAlgorithm(String algorithm) |
void |
setKeySize(int keySize) |
void |
setKeySpec(AlgorithmParameterSpec keySpec) |
void |
setPath(String path) |
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)
public AlgorithmParameterSpec getKeySpec()
public void setKeySpec(AlgorithmParameterSpec keySpec)
protected abstract KeyPair doReadKeyPair(InputStream is) throws Exception
Exception
protected abstract void doWriteKeyPair(KeyPair kp, OutputStream os) throws Exception
Exception
public Iterable<KeyPair> loadKeys()
KeyPairProvider
loadKeys
in interface KeyPairProvider
loadKeys
in class AbstractKeyPairProvider
null
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.