Class 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 accepts PGPPublicKeys which are capable of encryption.
    • Constructor Detail

      • EncryptionKeySelectionStrategy

        public EncryptionKeySelectionStrategy()
    • Method Detail

      • accept

        public boolean accept​(O identifier,
                              @Nonnull
                              org.bouncycastle.openpgp.PGPPublicKey key)