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_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_CERTEMPTY_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, setPasswordFinderdebug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeyTypes, loadKey, wrap, wrapexhaustCurrentIdentities, isEmpty, iterableOf, multiProvider, multiProvider, resolveKeyIdentityProvider, wrapKeyPairs, wrapKeyPairspublic 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)
KeyIdentityProvidersession - 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 nullprotected 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>IOExceptionGeneralSecurityExceptionCopyright © 2018–2024 The Apache Software Foundation. All rights reserved.