public class FileKeyPairProvider extends AbstractResourceKeyPairProvider<Path>
KeyPair
result is
cached and not re-loaded.AbstractResourceKeyPairProvider.KeyPairIterator
log
ECDSA_SHA2_NISTP256, ECDSA_SHA2_NISTP384, ECDSA_SHA2_NISTP521, EMPTY_KEYPAIR_PROVIDER, SSH_DSS, SSH_ED25519, SSH_RSA
EMPTY_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, setPasswordFinder
getSimplifiedLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKeyTypes, loadKey, wrap, wrap
iterableOf, iteratorOf, iteratorOf, multiProvider, multiProvider, resolveKeyIdentityProvider, wrapKeyPairs, wrapKeyPairs
public 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()
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–2019 The Apache Software Foundation. All rights reserved.