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_DSS_CERT, SSH_ECDSA_SHA2_NISTP256_CERT, SSH_ECDSA_SHA2_NISTP384_CERT, SSH_ECDSA_SHA2_NISTP521_CERT, SSH_ED25519, SSH_ED25519_CERT, SSH_RSA, SSH_RSA_CERT
EMPTY_KEYS_PROVIDER
Constructor and Description |
---|
FileKeyPairProvider() |
FileKeyPairProvider(Collection<? extends Path> files) |
FileKeyPairProvider(Path... files) |
FileKeyPairProvider(Path path) |
Modifier and Type | Method and Description |
---|---|
protected Iterable<KeyPair> |
doLoadKeys(SessionContext session,
Path resource) |
protected IoResource<Path> |
getIoResource(SessionContext session,
Path resource) |
Collection<? extends Path> |
getPaths() |
Iterable<KeyPair> |
loadKeys(SessionContext session)
Load available keys.
|
void |
setPaths(Collection<? extends Path> paths) |
doLoadKeys, doLoadKeys, getPasswordFinder, loadKeys, openKeyPairResource, resetCacheMap, setPasswordFinder
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKeyTypes, loadKey, wrap, wrap
exhaustCurrentIdentities, isEmpty, iterableOf, 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 setPaths(Collection<? extends Path> paths)
public Iterable<KeyPair> loadKeys(SessionContext session)
KeyIdentityProvider
session
- The SessionContext
for invoking this load command - may be null
if not invoked within a session context (e.g., offline tool or session unknown).Iterable
instance of available keys - ignored if null
protected IoResource<Path> getIoResource(SessionContext session, Path resource)
getIoResource
in class AbstractResourceKeyPairProvider<Path>
protected Iterable<KeyPair> doLoadKeys(SessionContext session, Path resource) throws IOException, GeneralSecurityException
doLoadKeys
in class AbstractResourceKeyPairProvider<Path>
IOException
GeneralSecurityException
Copyright © 2018–2021 The Apache Software Foundation. All rights reserved.