public static class OpenPGPKeyMaterialPool.OpenPGPKeyPool extends OpenPGPKeyMaterialPool<OpenPGPKey> implements OpenPGPKeyMaterialProvider.OpenPGPKeyProvider
OpenPGPKeyMaterialPool tailored to provide OpenPGPKeys.OpenPGPKeyMaterialPool.OpenPGPCertificatePool, OpenPGPKeyMaterialPool.OpenPGPKeyPoolOpenPGPKeyMaterialProvider.OpenPGPCertificateProvider, OpenPGPKeyMaterialProvider.OpenPGPKeyProvider| Constructor and Description |
|---|
OpenPGPKeyPool() |
OpenPGPKeyPool(java.util.Collection<OpenPGPKey> items) |
| Modifier and Type | Method and Description |
|---|---|
OpenPGPKeyMaterialPool.OpenPGPKeyPool |
addItem(OpenPGPKey item)
Add a certificate to the pool.
|
OpenPGPKeyMaterialPool.OpenPGPKeyPool |
setCacheResultsFromCallback(boolean cacheResults)
Decide, whether the implementation should add
certificates returned by
OpenPGPKeyMaterialPool.callback to the pool of cached certificates. |
OpenPGPKeyMaterialPool.OpenPGPKeyPool |
setMissingItemCallback(OpenPGPKeyMaterialProvider<OpenPGPKey> callback)
Set a callback that gets fired whenever an item is requested, which is not found in the pool.
|
getAllItems, provideclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprovidepublic OpenPGPKeyPool()
public OpenPGPKeyPool(java.util.Collection<OpenPGPKey> items)
public OpenPGPKeyMaterialPool.OpenPGPKeyPool setMissingItemCallback(OpenPGPKeyMaterialProvider<OpenPGPKey> callback)
OpenPGPKeyMaterialPoolsetMissingItemCallback in class OpenPGPKeyMaterialPool<OpenPGPKey>callback - callbackpublic OpenPGPKeyMaterialPool.OpenPGPKeyPool setCacheResultsFromCallback(boolean cacheResults)
OpenPGPKeyMaterialPoolcertificates returned by
OpenPGPKeyMaterialPool.callback to the pool of cached certificates.setCacheResultsFromCallback in class OpenPGPKeyMaterialPool<OpenPGPKey>cacheResults - if true, cache certificates from callbackpublic OpenPGPKeyMaterialPool.OpenPGPKeyPool addItem(OpenPGPKey item)
OpenPGPKeyMaterialPooladdItem in class OpenPGPKeyMaterialPool<OpenPGPKey>item - OpenPGP key or certificate that shall be added into the pool