public abstract class AbstractFileKeyPairProvider extends AbstractResourceKeyPairProvider<Path>
KeyPair result is
cached and not re-loaded.logECDSA_SHA2_NISTP256, ECDSA_SHA2_NISTP384, ECDSA_SHA2_NISTP521, EMPTY_KEYPAIR_PROVIDER, SSH_DSS, SSH_RSA| 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, setPasswordFindergetKeyTypes, loadKeypublic Collection<? extends Path> getPaths()
public void setFiles(Collection<File> files)
public void setPaths(Collection<? extends Path> paths)
public Iterable<KeyPair> loadKeys()
KeyPairProviderIterable instance of available keys, never nullprotected KeyPair doLoadKey(Path resource) throws IOException, GeneralSecurityException
doLoadKey in class AbstractResourceKeyPairProvider<Path>IOExceptionGeneralSecurityExceptionprotected InputStream openKeyPairResource(String resourceKey, Path resource) throws IOException
openKeyPairResource in class AbstractResourceKeyPairProvider<Path>IOExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.