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 String |
SSH_DSS
SSH identifier for DSA keys
|
static String |
SSH_RSA
SSH identifier for RSA keys
|
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}".
|
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
Iterable<KeyPair> loadKeys()
null
KeyPair loadKey(String type)
null
type
- the type of key to loadnull
String getKeyTypes()
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.