public static class OpenPGPKeyMaterialPool.OpenPGPCertificatePool extends OpenPGPKeyMaterialPool<OpenPGPCertificate> implements OpenPGPKeyMaterialProvider.OpenPGPCertificateProvider
OpenPGPKeyMaterialPool tailored to providing
OpenPGPCertificates.OpenPGPKeyMaterialPool.OpenPGPCertificatePool, OpenPGPKeyMaterialPool.OpenPGPKeyPoolOpenPGPKeyMaterialProvider.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, provideclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprovidepublic OpenPGPCertificatePool()
public OpenPGPCertificatePool(java.util.Collection<OpenPGPCertificate> items)
public OpenPGPKeyMaterialPool.OpenPGPCertificatePool setMissingItemCallback(OpenPGPKeyMaterialProvider<OpenPGPCertificate> callback)
OpenPGPKeyMaterialPoolsetMissingItemCallback in class OpenPGPKeyMaterialPool<OpenPGPCertificate>callback - callbackpublic OpenPGPKeyMaterialPool.OpenPGPCertificatePool setCacheResultsFromCallback(boolean cacheResults)
OpenPGPKeyMaterialPoolcertificates 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)
OpenPGPKeyMaterialPooladdItem in class OpenPGPKeyMaterialPool<OpenPGPCertificate>item - OpenPGP key or certificate that shall be added into the pool