Class EncryptionKeySelectionStrategy

  • All Implemented Interfaces:
    KeySelectionStrategy<org.bouncycastle.openpgp.PGPPublicKey,​org.bouncycastle.openpgp.PGPPublicKeyRing>

    public class EncryptionKeySelectionStrategy
    extends PublicKeySelectionStrategy
    Key Selection Strategy that only accepts PGPPublicKeys which are capable of encryption.
    • Field Detail

      • LOGGER

        public static final java.util.logging.Logger LOGGER
    • Constructor Detail

      • EncryptionKeySelectionStrategy

        public EncryptionKeySelectionStrategy​(KeyFlag... flags)
    • Method Detail

      • accept

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