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 |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,java.lang.Iterable<java.security.KeyPair>> |
cacheMap |
private FilePasswordProvider |
passwordFinder |
logECDSA_SHA2_NISTP256, ECDSA_SHA2_NISTP384, ECDSA_SHA2_NISTP521, EMPTY_KEYPAIR_PROVIDER, SSH_DSS, SSH_ED25519, SSH_RSAEMPTY_KEYS_PROVIDER| Modifier | Constructor and Description |
|---|---|
protected |
AbstractResourceKeyPairProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Iterable<java.security.KeyPair> |
doLoadKeys(SessionContext session,
NamedResource resourceKey,
java.io.InputStream inputStream,
FilePasswordProvider provider) |
protected java.lang.Iterable<java.security.KeyPair> |
doLoadKeys(SessionContext session,
NamedResource resourceKey,
R resource,
FilePasswordProvider provider) |
protected java.lang.Iterable<java.security.KeyPair> |
doLoadKeys(SessionContext session,
R resource) |
protected IoResource<?> |
getIoResource(SessionContext session,
R resource) |
FilePasswordProvider |
getPasswordFinder() |
protected java.lang.Iterable<java.security.KeyPair> |
loadKeys(SessionContext session,
java.util.Collection<? extends R> resources) |
protected java.io.InputStream |
openKeyPairResource(SessionContext session,
NamedResource resourceKey,
R resource) |
protected void |
resetCacheMap(java.util.Collection<?> resources)
Checks which of the new resources we already loaded and can keep the
associated key pair
|
void |
setPasswordFinder(FilePasswordProvider passwordFinder) |
getSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeyTypes, loadKey, wrap, wrapexhaustCurrentIdentities, isEmpty, iterableOf, loadKeys, multiProvider, multiProvider, resolveKeyIdentityProvider, wrapKeyPairs, wrapKeyPairsprivate FilePasswordProvider passwordFinder
private final java.util.Map<java.lang.String,java.lang.Iterable<java.security.KeyPair>> cacheMap
public FilePasswordProvider getPasswordFinder()
public void setPasswordFinder(FilePasswordProvider passwordFinder)
protected void resetCacheMap(java.util.Collection<?> resources)
resources - The collection of new resources - can be null/empty
in which case the cache is clearedprotected java.lang.Iterable<java.security.KeyPair> loadKeys(SessionContext session, java.util.Collection<? extends R> resources)
protected IoResource<?> getIoResource(SessionContext session, R resource)
protected java.lang.Iterable<java.security.KeyPair> doLoadKeys(SessionContext session, R resource) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityExceptionprotected java.lang.Iterable<java.security.KeyPair> doLoadKeys(SessionContext session, NamedResource resourceKey, R resource, FilePasswordProvider provider) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityExceptionprotected java.io.InputStream openKeyPairResource(SessionContext session, NamedResource resourceKey, R resource) throws java.io.IOException
java.io.IOExceptionprotected java.lang.Iterable<java.security.KeyPair> doLoadKeys(SessionContext session, NamedResource resourceKey, java.io.InputStream inputStream, FilePasswordProvider provider) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityException