Class Whitelist.SecRingSelectionStrategy<O>
java.lang.Object
org.pgpainless.util.selection.keyring.SecretKeyRingSelectionStrategy<O>
org.pgpainless.util.selection.keyring.impl.Whitelist.SecRingSelectionStrategy<O>
- Type Parameters:
O
- Type of identifier forPGPSecretKeyRingCollections
.
- All Implemented Interfaces:
KeyRingSelectionStrategy<org.bouncycastle.openpgp.PGPSecretKeyRing,
org.bouncycastle.openpgp.PGPSecretKeyRingCollection, O>
- Enclosing class:
- Whitelist
KeyRingSelectionStrategy
which accepts
PGPSecretKeyRings
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
ConstructorsConstructorDescriptionSecRingSelectionStrategy
(Map<O, Set<Long>> whitelist) SecRingSelectionStrategy
(MultiMap<O, Long> whitelist) -
Method Summary
Methods inherited from class org.pgpainless.util.selection.keyring.SecretKeyRingSelectionStrategy
selectKeyRingsFromCollection, selectKeyRingsFromCollections
-
Constructor Details
-
SecRingSelectionStrategy
-
SecRingSelectionStrategy
-
-
Method Details
-
accept
Description copied from interface:KeyRingSelectionStrategy
Return true, if the filter accepts the givenkeyRing
based on the givenidentifier
.- Parameters:
identifier
- identifierkeyRing
- key ring- Returns:
- acceptance
-