Package org.pgpainless.key.selection.key
Class SecretKeySelectionStrategy<O>
- java.lang.Object
-
- org.pgpainless.key.selection.key.SecretKeySelectionStrategy<O>
-
- Type Parameters:
O- Type that describes the owner of the key.
- All Implemented Interfaces:
KeySelectionStrategy<org.bouncycastle.openpgp.PGPSecretKey,org.bouncycastle.openpgp.PGPSecretKeyRing,O>
- Direct Known Subclasses:
And.SecKeySelectionStrategy,NoRevocation.SecKeySelectionStrategy,Or.SecKeySelectionStrategy,PartialUserId.SecRingSelectionStrategy,SignatureKeySelectionStrategy
public abstract class SecretKeySelectionStrategy<O> extends java.lang.Object implements KeySelectionStrategy<org.bouncycastle.openpgp.PGPSecretKey,org.bouncycastle.openpgp.PGPSecretKeyRing,O>
Key Selection Strategy which acceptsPGPSecretKeys that are accepted by the abstract methodKeySelectionStrategy.accept(Object, Object).
-
-
Constructor Summary
Constructors Constructor Description SecretKeySelectionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<org.bouncycastle.openpgp.PGPSecretKey>selectKeysFromKeyRing(O identifier, org.bouncycastle.openpgp.PGPSecretKeyRing ring)MultiMap<O,org.bouncycastle.openpgp.PGPSecretKey>selectKeysFromKeyRings(MultiMap<O,org.bouncycastle.openpgp.PGPSecretKeyRing> 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.PGPSecretKey> selectKeysFromKeyRing(O identifier, @Nonnull org.bouncycastle.openpgp.PGPSecretKeyRing ring)
- Specified by:
selectKeysFromKeyRingin interfaceKeySelectionStrategy<org.bouncycastle.openpgp.PGPSecretKey,org.bouncycastle.openpgp.PGPSecretKeyRing,O>
-
selectKeysFromKeyRings
public MultiMap<O,org.bouncycastle.openpgp.PGPSecretKey> selectKeysFromKeyRings(@Nonnull MultiMap<O,org.bouncycastle.openpgp.PGPSecretKeyRing> keyRings)
- Specified by:
selectKeysFromKeyRingsin interfaceKeySelectionStrategy<org.bouncycastle.openpgp.PGPSecretKey,org.bouncycastle.openpgp.PGPSecretKeyRing,O>
-
-