Interface SubkeySelector
public interface SubkeySelector
Interface for selecting a subset of keys from a
PGPKeyRing.
This is useful e.g. for selecting a signing key from an OpenPGP key, or a for selecting all
encryption capable subkeys of a certificate.-
Method Summary
Modifier and TypeMethodDescriptionselect(OpenPGPCertificate certificate, OpenPGPPolicy policy) Given aPGPKeyRing, select a subset of the key rings (sub-)keys and return theirKeyIdentifiers.
-
Method Details
-
select
List<OpenPGPCertificate.OpenPGPComponentKey> select(OpenPGPCertificate certificate, OpenPGPPolicy policy) Given aPGPKeyRing, select a subset of the key rings (sub-)keys and return theirKeyIdentifiers.- Parameters:
certificate- OpenPGP key or certificatepolicy- OpenPGP algorithm policy- Returns:
- non-null list of identifiers
-