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 |
logECDSA_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| 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) |
debug, 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, loadKeys, multiProvider, multiProvider, resolveKeyIdentityProvider, wrapKeyPairs, wrapKeyPairspublic 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
IOExceptionGeneralSecurityExceptionprotected Iterable<KeyPair> doLoadKeys(SessionContext session, NamedResource resourceKey, R resource, FilePasswordProvider provider) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionprotected InputStream openKeyPairResource(SessionContext session, NamedResource resourceKey, R resource) throws IOException
IOExceptionprotected Iterable<KeyPair> doLoadKeys(SessionContext session, NamedResource resourceKey, InputStream inputStream, FilePasswordProvider provider) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionCopyright © 2018–2021 The Apache Software Foundation. All rights reserved.