public abstract class AbstractFileKeyPairProvider extends AbstractResourceKeyPairProvider<Path>
KeyPair
result is
cached and not re-loaded.KeyPairProvider.Utils
log
ECDSA_SHA2_NISTP256, ECDSA_SHA2_NISTP384, ECDSA_SHA2_NISTP521, EMPTY_KEYPAIR_PROVIDER, SSH_DSS, SSH_ED25519, SSH_RSA
EMPTY_KEYS_PROVIDER
Modifier | Constructor and Description |
---|---|
protected |
AbstractFileKeyPairProvider() |
Modifier and Type | Method and Description |
---|---|
protected KeyPair |
doLoadKey(Path resource) |
Collection<? extends Path> |
getPaths() |
Iterable<KeyPair> |
loadKeys()
Load available keys.
|
protected InputStream |
openKeyPairResource(String resourceKey,
Path resource) |
void |
setFiles(Collection<File> files) |
void |
setPaths(Collection<? extends Path> paths) |
doLoadKey, doLoadKey, getPasswordFinder, loadKeys, resetCacheMap, setPasswordFinder
getKeyTypes, loadKey
public Collection<? extends Path> getPaths()
public void setFiles(Collection<File> files)
public void setPaths(Collection<? extends Path> paths)
public Iterable<KeyPair> loadKeys()
KeyIdentityProvider
Iterable
instance of available keys - ignored if null
protected KeyPair doLoadKey(Path resource) throws IOException, GeneralSecurityException
doLoadKey
in class AbstractResourceKeyPairProvider<Path>
IOException
GeneralSecurityException
protected InputStream openKeyPairResource(String resourceKey, Path resource) throws IOException
openKeyPairResource
in class AbstractResourceKeyPairProvider<Path>
IOException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.