Package org.pgpainless.key.selection.key
Class PublicKeySelectionStrategy<O>
- java.lang.Object
-
- org.pgpainless.key.selection.key.PublicKeySelectionStrategy<O>
-
- Type Parameters:
O- Type that describes the owner of the key.
- All Implemented Interfaces:
KeySelectionStrategy<org.bouncycastle.openpgp.PGPPublicKey,org.bouncycastle.openpgp.PGPPublicKeyRing,O>
- Direct Known Subclasses:
And.PubKeySelectionStrategy,EncryptionKeySelectionStrategy,NoRevocation.PubKeySelectionStrategy,Or.PubKeySelectionStrategy,PartialUserId.PubRingSelectionStrategy,SignedByMasterKey.PubkeySelectionStrategy
public abstract class PublicKeySelectionStrategy<O> extends java.lang.Object implements KeySelectionStrategy<org.bouncycastle.openpgp.PGPPublicKey,org.bouncycastle.openpgp.PGPPublicKeyRing,O>
Key Selection Strategy which acceptsPGPPublicKeys that are accepted by the abstract methodKeySelectionStrategy.accept(Object, Object).
-
-
Constructor Summary
Constructors Constructor Description PublicKeySelectionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<org.bouncycastle.openpgp.PGPPublicKey>selectKeysFromKeyRing(O identifier, org.bouncycastle.openpgp.PGPPublicKeyRing ring)MultiMap<O,org.bouncycastle.openpgp.PGPPublicKey>selectKeysFromKeyRings(MultiMap<O,org.bouncycastle.openpgp.PGPPublicKeyRing> keyRings)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pgpainless.key.selection.key.KeySelectionStrategy
accept
-
-
-
-
Method Detail
-
selectKeysFromKeyRing
public java.util.Set<org.bouncycastle.openpgp.PGPPublicKey> selectKeysFromKeyRing(O identifier, @Nonnull org.bouncycastle.openpgp.PGPPublicKeyRing ring)
- Specified by:
selectKeysFromKeyRingin interfaceKeySelectionStrategy<org.bouncycastle.openpgp.PGPPublicKey,org.bouncycastle.openpgp.PGPPublicKeyRing,O>
-
selectKeysFromKeyRings
public MultiMap<O,org.bouncycastle.openpgp.PGPPublicKey> selectKeysFromKeyRings(@Nonnull MultiMap<O,org.bouncycastle.openpgp.PGPPublicKeyRing> keyRings)
- Specified by:
selectKeysFromKeyRingsin interfaceKeySelectionStrategy<org.bouncycastle.openpgp.PGPPublicKey,org.bouncycastle.openpgp.PGPPublicKeyRing,O>
-
-