public abstract class AbstractResourceKeyPairProvider<R> extends AbstractKeyPairProvider
logECDSA_SHA2_NISTP256, ECDSA_SHA2_NISTP384, ECDSA_SHA2_NISTP521, EMPTY_KEYPAIR_PROVIDER, SSH_DSS, SSH_RSA| Modifier | Constructor and Description |
|---|---|
protected |
AbstractResourceKeyPairProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected KeyPair |
doLoadKey(R resource) |
protected abstract KeyPair |
doLoadKey(String resourceKey,
InputStream inputStream,
FilePasswordProvider provider) |
protected KeyPair |
doLoadKey(String resourceKey,
R resource,
FilePasswordProvider provider) |
FilePasswordProvider |
getPasswordFinder() |
protected Iterable<KeyPair> |
loadKeys(Collection<? extends R> resources) |
protected abstract InputStream |
openKeyPairResource(String resourceKey,
R resource) |
protected void |
resetCacheMap(Collection<?> resources) |
void |
setPasswordFinder(FilePasswordProvider passwordFinder) |
getKeyTypes, loadKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloadKeyspublic FilePasswordProvider getPasswordFinder()
public void setPasswordFinder(FilePasswordProvider passwordFinder)
protected void resetCacheMap(Collection<?> resources)
protected Iterable<KeyPair> loadKeys(Collection<? extends R> resources)
protected KeyPair doLoadKey(R resource) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionprotected KeyPair doLoadKey(String resourceKey, R resource, FilePasswordProvider provider) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionprotected abstract InputStream openKeyPairResource(String resourceKey, R resource) throws IOException
IOExceptionprotected abstract KeyPair doLoadKey(String resourceKey, InputStream inputStream, FilePasswordProvider provider) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.