Package org.bouncycastle.openpgp.api
Interface OpenPGPKeyMaterialProvider<M extends OpenPGPCertificate>
- Type Parameters:
M
- eitherOpenPGPCertificate
orOpenPGPKey
- All Known Subinterfaces:
OpenPGPKeyMaterialProvider.OpenPGPCertificateProvider
,OpenPGPKeyMaterialProvider.OpenPGPKeyProvider
- All Known Implementing Classes:
OpenPGPKeyMaterialPool
,OpenPGPKeyMaterialPool.OpenPGPCertificatePool
,OpenPGPKeyMaterialPool.OpenPGPKeyPool
public interface OpenPGPKeyMaterialProvider<M extends OpenPGPCertificate>
Interface for providing OpenPGP keys or certificates.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Interface for requestingOpenPGPCertificates
by providing aKeyIdentifier
.static interface
Interface for requestingOpenPGPKeys
by providing aKeyIdentifier
. -
Method Summary
Modifier and TypeMethodDescriptionprovide
(KeyIdentifier componentKeyIdentifier) Provide the requestedOpenPGPCertificate
orOpenPGPKey
containing the component key identified by the passed inKeyIdentifier
.
-
Method Details
-
provide
Provide the requestedOpenPGPCertificate
orOpenPGPKey
containing the component key identified by the passed inKeyIdentifier
.- Parameters:
componentKeyIdentifier
- identifier of a component key (primary key or subkey)- Returns:
- the OpenPGP certificate or key containing the identified component key
-