public abstract class AbstractKeyPairProvider extends Object implements KeyPairProvider
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
ECDSA_SHA2_NISTP256, ECDSA_SHA2_NISTP384, ECDSA_SHA2_NISTP521, SSH_DSS, SSH_RSA| Constructor and Description |
|---|
AbstractKeyPairProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
getKeyTypes()
Return a comma separated list of the key types available
|
KeyPair |
loadKey(String type)
Load a key of the specified type which can be "ssh-rsa", "ssh-dss", or
"ecdsa-sha2-nistp{256,384,521}".
|
abstract Iterable<KeyPair> |
loadKeys()
Load available keys.
|
public KeyPair loadKey(String type)
KeyPairProvidernullloadKey in interface KeyPairProvidertype - the type of key to loadnullpublic String getKeyTypes()
KeyPairProvidergetKeyTypes in interface KeyPairProviderpublic abstract Iterable<KeyPair> loadKeys()
KeyPairProviderloadKeys in interface KeyPairProvidernullCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.