public interface KeyPairProvider extends KeyIdentityProvider
| 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_ED25519
SSH identifier for ED25519 elliptic curve keys
|
static String |
SSH_RSA
SSH identifier for RSA keys
|
EMPTY_KEYS_PROVIDER, LOADER| Modifier and Type | Method and Description |
|---|---|
default Iterable<String> |
getKeyTypes() |
default 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}".
|
static KeyPairProvider |
wrap(Iterable<KeyPair> pairs)
Wrap the provided
KeyPairs into a KeyPairProvider |
static KeyPairProvider |
wrap(KeyPair... pairs)
Wrap the provided
KeyPairs into a KeyPairProvider |
iterableOf, iteratorOf, iteratorOf, iteratorOf, loadKeys, multiProvider, multiProvider, providerOf, resolveKeyIdentityProviderstatic final String SSH_RSA
static final String SSH_DSS
static final String SSH_ED25519
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 keysdefault KeyPair loadKey(String type)
nulltype - the type of key to loadnull if this type of key is not availabledefault Iterable<String> getKeyTypes()
Iterable key types in preferred order - never nullstatic KeyPairProvider wrap(KeyPair... pairs)
KeyPairs into a KeyPairProviderwrap in interface KeyIdentityProviderpairs - The available pairs - ignored if null/empty (i.e.,
returns EMPTY_KEYPAIR_PROVIDER)wrap(Iterable)static KeyPairProvider wrap(Iterable<KeyPair> pairs)
KeyPairs into a KeyPairProviderwrap in interface KeyIdentityProviderpairs - The available pairs Iterable - ignored if null (i.e.,
returns EMPTY_KEYPAIR_PROVIDER)Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.