public class FileKeyPairProvider extends AbstractResourceKeyPairProvider<Path>
KeyPair result is
cached and not re-loaded.AbstractResourceKeyPairProvider.KeyPairIteratorlogECDSA_SHA2_NISTP256, ECDSA_SHA2_NISTP384, ECDSA_SHA2_NISTP521, EMPTY_KEYPAIR_PROVIDER, SSH_DSS, SSH_ED25519, SSH_RSAEMPTY_KEYS_PROVIDER, LOADER| Constructor and Description |
|---|
FileKeyPairProvider() |
FileKeyPairProvider(Collection<? extends Path> files) |
FileKeyPairProvider(Path... files) |
FileKeyPairProvider(Path path) |
| 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, setPasswordFindergetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeyTypes, loadKey, wrap, wrapiterableOf, iteratorOf, iteratorOf, iteratorOf, multiProvider, multiProvider, providerOf, resolveKeyIdentityProviderpublic FileKeyPairProvider()
public FileKeyPairProvider(Path path)
public FileKeyPairProvider(Path... files)
public FileKeyPairProvider(Collection<? extends Path> files)
public Collection<? extends Path> getPaths()
public void setFiles(Collection<File> files)
public void setPaths(Collection<? extends Path> paths)
public Iterable<KeyPair> loadKeys()
KeyIdentityProviderIterable instance of available keys - ignored if 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–2017 The Apache Software Foundation. All rights reserved.