public interface KeyPairProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
ECDSA_SHA2_NISTP256
SSH identifier for EC keys in NIST curve P-256
|
static String |
ECDSA_SHA2_NISTP384
SSH identifier for EC keys in NIST curve P-384
|
static String |
ECDSA_SHA2_NISTP521
SSH identifier for EC keys in NIST curve P-521
|
static KeyPairProvider |
EMPTY_KEYPAIR_PROVIDER
A
KeyPairProvider that has no keys |
static String |
SSH_DSS
SSH identifier for DSA keys
|
static String |
SSH_RSA
SSH identifier for RSA keys
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<String> |
getKeyTypes() |
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}".
|
Iterable<KeyPair> |
loadKeys()
Load available keys.
|
static final String SSH_RSA
static final String SSH_DSS
static final String ECDSA_SHA2_NISTP256
static final String ECDSA_SHA2_NISTP384
static final String ECDSA_SHA2_NISTP521
static final KeyPairProvider EMPTY_KEYPAIR_PROVIDER
KeyPairProvider that has no keysIterable<KeyPair> loadKeys()
Iterable instance of available keys, never nullKeyPair loadKey(String type)
nulltype - the type of key to loadnullCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.