public static class OpenPGPKeyMaterialPool.OpenPGPKeyPool extends OpenPGPKeyMaterialPool<OpenPGPKey> implements OpenPGPKeyMaterialProvider.OpenPGPKeyProvider
OpenPGPKeyMaterialPool
tailored to provide OpenPGPKeys
.OpenPGPKeyMaterialPool.OpenPGPCertificatePool, OpenPGPKeyMaterialPool.OpenPGPKeyPool
OpenPGPKeyMaterialProvider.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, provide
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
provide
public OpenPGPKeyPool()
public OpenPGPKeyPool(java.util.Collection<OpenPGPKey> items)
public OpenPGPKeyMaterialPool.OpenPGPKeyPool setMissingItemCallback(OpenPGPKeyMaterialProvider<OpenPGPKey> callback)
OpenPGPKeyMaterialPool
setMissingItemCallback
in class OpenPGPKeyMaterialPool<OpenPGPKey>
callback
- callbackpublic OpenPGPKeyMaterialPool.OpenPGPKeyPool setCacheResultsFromCallback(boolean cacheResults)
OpenPGPKeyMaterialPool
certificates
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)
OpenPGPKeyMaterialPool
addItem
in class OpenPGPKeyMaterialPool<OpenPGPKey>
item
- OpenPGP key or certificate that shall be added into the pool