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(java.lang.String path) |
protected |
AbstractGeneratorHostKeyProvider(java.lang.String path,
java.lang.String algorithm) |
protected |
AbstractGeneratorHostKeyProvider(java.lang.String path,
java.lang.String algorithm,
int keySize) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.security.KeyPair |
doReadKeyPair(java.io.InputStream is) |
protected abstract void |
doWriteKeyPair(java.security.KeyPair kp,
java.io.OutputStream os) |
java.lang.String |
getAlgorithm() |
int |
getKeySize() |
java.security.spec.AlgorithmParameterSpec |
getKeySpec() |
java.lang.String |
getPath() |
java.lang.Iterable<java.security.KeyPair> |
loadKeys()
Load available keys.
|
void |
setAlgorithm(java.lang.String algorithm) |
void |
setKeySize(int keySize) |
void |
setKeySpec(java.security.spec.AlgorithmParameterSpec keySpec) |
void |
setPath(java.lang.String path) |
getKeyTypes, loadKeyprotected AbstractGeneratorHostKeyProvider()
protected AbstractGeneratorHostKeyProvider(java.lang.String path)
protected AbstractGeneratorHostKeyProvider(java.lang.String path,
java.lang.String algorithm)
protected AbstractGeneratorHostKeyProvider(java.lang.String path,
java.lang.String algorithm,
int keySize)
public java.lang.String getPath()
public void setPath(java.lang.String path)
public java.lang.String getAlgorithm()
public void setAlgorithm(java.lang.String algorithm)
public int getKeySize()
public void setKeySize(int keySize)
public java.security.spec.AlgorithmParameterSpec getKeySpec()
public void setKeySpec(java.security.spec.AlgorithmParameterSpec keySpec)
protected abstract java.security.KeyPair doReadKeyPair(java.io.InputStream is)
throws java.lang.Exception
java.lang.Exceptionprotected abstract void doWriteKeyPair(java.security.KeyPair kp,
java.io.OutputStream os)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Iterable<java.security.KeyPair> loadKeys()
KeyPairProviderloadKeys in interface KeyPairProviderloadKeys in class AbstractKeyPairProvidernullCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.