public static class OpenPGPKeyMaterialPool.OpenPGPCertificatePool extends OpenPGPKeyMaterialPool<OpenPGPCertificate> implements OpenPGPKeyMaterialProvider.OpenPGPCertificateProvider
OpenPGPKeyMaterialPool
tailored to providing
OpenPGPCertificates
.OpenPGPKeyMaterialPool.OpenPGPCertificatePool, OpenPGPKeyMaterialPool.OpenPGPKeyPool
OpenPGPKeyMaterialProvider.OpenPGPCertificateProvider, OpenPGPKeyMaterialProvider.OpenPGPKeyProvider
Constructor and Description |
---|
OpenPGPCertificatePool() |
OpenPGPCertificatePool(java.util.Collection<OpenPGPCertificate> items) |
Modifier and Type | Method and Description |
---|---|
OpenPGPKeyMaterialPool.OpenPGPCertificatePool |
addItem(OpenPGPCertificate item)
Add a certificate to the pool.
|
OpenPGPKeyMaterialPool.OpenPGPCertificatePool |
setCacheResultsFromCallback(boolean cacheResults)
Decide, whether the implementation should add
certificates returned by
OpenPGPKeyMaterialPool.callback to the pool of cached certificates. |
OpenPGPKeyMaterialPool.OpenPGPCertificatePool |
setMissingItemCallback(OpenPGPKeyMaterialProvider<OpenPGPCertificate> 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 OpenPGPCertificatePool()
public OpenPGPCertificatePool(java.util.Collection<OpenPGPCertificate> items)
public OpenPGPKeyMaterialPool.OpenPGPCertificatePool setMissingItemCallback(OpenPGPKeyMaterialProvider<OpenPGPCertificate> callback)
OpenPGPKeyMaterialPool
setMissingItemCallback
in class OpenPGPKeyMaterialPool<OpenPGPCertificate>
callback
- callbackpublic OpenPGPKeyMaterialPool.OpenPGPCertificatePool setCacheResultsFromCallback(boolean cacheResults)
OpenPGPKeyMaterialPool
certificates
returned by
OpenPGPKeyMaterialPool.callback
to the pool of cached certificates.setCacheResultsFromCallback
in class OpenPGPKeyMaterialPool<OpenPGPCertificate>
cacheResults
- if true, cache certificates from callbackpublic OpenPGPKeyMaterialPool.OpenPGPCertificatePool addItem(OpenPGPCertificate item)
OpenPGPKeyMaterialPool
addItem
in class OpenPGPKeyMaterialPool<OpenPGPCertificate>
item
- OpenPGP key or certificate that shall be added into the pool