Package org.gnupg

Interface GnuPGDummyKeyUtil.KeyFilter

Enclosing class:
GnuPGDummyKeyUtil
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface GnuPGDummyKeyUtil.KeyFilter
Filter for selecting keys.
  • Method Details

    • filter

      boolean filter(long keyId)
      Return true, if the given key should be selected, false otherwise.
      Parameters:
      keyId - id of the key
      Returns:
      select
    • any

      Select any key.
      Returns:
      filter
    • only

      static GnuPGDummyKeyUtil.KeyFilter only(long onlyKeyId)
      Select only the given keyId.
      Parameters:
      onlyKeyId - only acceptable key id
      Returns:
      filter
    • selected

      Select all keyIds which are contained in the given set of ids.
      Parameters:
      ids - set of acceptable keyIds
      Returns:
      filter