public abstract class AbstractClassLoadableResourceKeyPairProvider extends AbstractResourceKeyPairProvider<String>
ClassLoader.getResourceAsStream(String)
.
If no loader configured via setResourceLoader(ClassLoader)
, then
ThreadUtils.resolveDefaultClassLoader(Class)
is usedKeyPairProvider.Utils
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 |
AbstractClassLoadableResourceKeyPairProvider() |
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getResourceLoader() |
Collection<String> |
getResources() |
Iterable<KeyPair> |
loadKeys()
Load available keys.
|
protected InputStream |
openKeyPairResource(String resourceKey,
String resource) |
protected ClassLoader |
resolveClassLoader() |
void |
setResourceLoader(ClassLoader classLoader) |
void |
setResources(Collection<String> resources) |
doLoadKey, doLoadKey, doLoadKey, getPasswordFinder, loadKeys, resetCacheMap, setPasswordFinder
getKeyTypes, loadKey
protected AbstractClassLoadableResourceKeyPairProvider()
public Collection<String> getResources()
public void setResources(Collection<String> resources)
public ClassLoader getResourceLoader()
public void setResourceLoader(ClassLoader classLoader)
public Iterable<KeyPair> loadKeys()
KeyIdentityProvider
Iterable
instance of available keys - ignored if null
protected InputStream openKeyPairResource(String resourceKey, String resource) throws IOException
openKeyPairResource
in class AbstractResourceKeyPairProvider<String>
IOException
protected ClassLoader resolveClassLoader()
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.