R
- Type of resource from which the KeyPair
is generatedpublic abstract class AbstractResourceKeyPairProvider<R> extends AbstractKeyPairProvider
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractResourceKeyPairProvider.KeyPairIterator |
log
ECDSA_SHA2_NISTP256, ECDSA_SHA2_NISTP384, ECDSA_SHA2_NISTP521, EMPTY_KEYPAIR_PROVIDER, SSH_DSS, SSH_ED25519, SSH_RSA
EMPTY_KEYS_PROVIDER
Modifier | Constructor and Description |
---|---|
protected |
AbstractResourceKeyPairProvider() |
Modifier and Type | Method and Description |
---|---|
protected Iterable<KeyPair> |
doLoadKeys(SessionContext session,
NamedResource resourceKey,
InputStream inputStream,
FilePasswordProvider provider) |
protected Iterable<KeyPair> |
doLoadKeys(SessionContext session,
NamedResource resourceKey,
R resource,
FilePasswordProvider provider) |
protected Iterable<KeyPair> |
doLoadKeys(SessionContext session,
R resource) |
protected IoResource<?> |
getIoResource(SessionContext session,
R resource) |
FilePasswordProvider |
getPasswordFinder() |
protected Iterable<KeyPair> |
loadKeys(SessionContext session,
Collection<? extends R> resources) |
protected InputStream |
openKeyPairResource(SessionContext session,
NamedResource resourceKey,
R resource) |
protected void |
resetCacheMap(Collection<?> resources)
Checks which of the new resources we already loaded and can keep the
associated key pair
|
void |
setPasswordFinder(FilePasswordProvider passwordFinder) |
getSimplifiedLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKeyTypes, loadKey, wrap, wrap
exhaustCurrentIdentities, isEmpty, iterableOf, loadKeys, multiProvider, multiProvider, resolveKeyIdentityProvider, wrapKeyPairs, wrapKeyPairs
public FilePasswordProvider getPasswordFinder()
public void setPasswordFinder(FilePasswordProvider passwordFinder)
protected void resetCacheMap(Collection<?> resources)
resources
- The collection of new resources - can be null
/empty
in which case the cache is clearedprotected Iterable<KeyPair> loadKeys(SessionContext session, Collection<? extends R> resources)
protected IoResource<?> getIoResource(SessionContext session, R resource)
protected Iterable<KeyPair> doLoadKeys(SessionContext session, R resource) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
protected Iterable<KeyPair> doLoadKeys(SessionContext session, NamedResource resourceKey, R resource, FilePasswordProvider provider) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
protected InputStream openKeyPairResource(SessionContext session, NamedResource resourceKey, R resource) throws IOException
IOException
protected Iterable<KeyPair> doLoadKeys(SessionContext session, NamedResource resourceKey, InputStream inputStream, FilePasswordProvider provider) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.