Class Whitelist.PubRingSelectionStrategy<O>
java.lang.Object
org.pgpainless.util.selection.keyring.PublicKeyRingSelectionStrategy<O>
org.pgpainless.util.selection.keyring.impl.Whitelist.PubRingSelectionStrategy<O>
- Type Parameters:
O- Type of identifier forPGPPublicKeyRingCollections.
- All Implemented Interfaces:
KeyRingSelectionStrategy<org.bouncycastle.openpgp.PGPPublicKeyRing,org.bouncycastle.openpgp.PGPPublicKeyRingCollection, O>
- Enclosing class:
- Whitelist
KeyRingSelectionStrategy which accepts
PGPPublicKeyRings if the whitelistcontains their primary key id. If the whitelist contains 123L for "alice@pgpainless.org", the key with primary key id 123L is acceptable for "alice@pgpainless.org".
-
Constructor Summary
ConstructorsConstructorDescriptionPubRingSelectionStrategy(Map<O, Set<Long>> whitelist) PubRingSelectionStrategy(MultiMap<O, Long> whitelist) -
Method Summary
Methods inherited from class org.pgpainless.util.selection.keyring.PublicKeyRingSelectionStrategy
selectKeyRingsFromCollection, selectKeyRingsFromCollections
-
Constructor Details
-
PubRingSelectionStrategy
-
PubRingSelectionStrategy
-
-
Method Details
-
accept
Description copied from interface:KeyRingSelectionStrategyReturn true, if the filter accepts the givenkeyRing
based on the givenidentifier
.- Parameters:
identifier- identifierkeyRing- key ring- Returns:
- acceptance
-