Class EncryptionKeySelectionStrategy<O>
- java.lang.Object
-
- org.pgpainless.key.selection.key.PublicKeySelectionStrategy<O>
-
- org.pgpainless.key.selection.key.impl.EncryptionKeySelectionStrategy<O>
-
- Type Parameters:
O- Type that describes the owner of the key (not used for decision).
- All Implemented Interfaces:
KeySelectionStrategy<org.bouncycastle.openpgp.PGPPublicKey,org.bouncycastle.openpgp.PGPPublicKeyRing,O>
public class EncryptionKeySelectionStrategy<O> extends PublicKeySelectionStrategy<O>
Key Selection Strategy that only acceptsPGPPublicKeys which are capable of encryption.
-
-
Constructor Summary
Constructors Constructor Description EncryptionKeySelectionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(O identifier, org.bouncycastle.openpgp.PGPPublicKey key)-
Methods inherited from class org.pgpainless.key.selection.key.PublicKeySelectionStrategy
selectKeysFromKeyRing, selectKeysFromKeyRings
-
-
-
-
Method Detail
-
accept
public boolean accept(O identifier, @Nonnull org.bouncycastle.openpgp.PGPPublicKey key)
-
-