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)
KeyPairProvider
null
loadKey
in interface KeyPairProvider
type
- the type of key to loadnull
public String getKeyTypes()
KeyPairProvider
getKeyTypes
in interface KeyPairProvider
public abstract Iterable<KeyPair> loadKeys()
KeyPairProvider
loadKeys
in interface KeyPairProvider
null
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.