Schnittstelle KeyRingSelectionStrategy<R,C,O>

Typparameter:
R - Type of PGPKeyRing (PGPSecretKeyRing or PGPPublicKeyRing).
C - Type of key ring collection (e.g. PGPSecretKeyRingCollection or PGPPublicKeyRingCollection).
O - Type of key identifier
Alle bekannten Implementierungsklassen:
ExactUserId.PubRingSelectionStrategy, ExactUserId.SecRingSelectionStrategy, PublicKeyRingSelectionStrategy, SecretKeyRingSelectionStrategy, Whitelist.PubRingSelectionStrategy, Whitelist.SecRingSelectionStrategy, Wildcard.PubRingSelectionStrategy, Wildcard.SecRingSelectionStrategy, XMPP.PubRingSelectionStrategy, XMPP.SecRingSelectionStrategy

public interface KeyRingSelectionStrategy<R,C,O>
Filter for selecting public / secret key rings based on identifiers (e.g. user-ids).
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    boolean
    accept(O identifier, R keyRing)
    Return true, if the filter accepts the given
    selectKeyRingsFromCollection(O identifier, C keyRingCollection)
    Iterate of the given
    org.pgpainless.util.MultiMap<O,R>
    selectKeyRingsFromCollections(org.pgpainless.util.MultiMap<O,C> keyRingCollections)
    Iterate over all keyRings in the given MultiMap of keyRingCollections and return a new MultiMap which for every identifier (key of the map) contains all acceptable keyRings based on that identifier.
  • Methodendetails

    • accept

      boolean accept(O identifier, R keyRing)
      Return true, if the filter accepts the given
      keyRing
      based on the given
      identifier
      .
      Parameter:
      identifier - identifier
      keyRing - key ring
      Gibt zurück:
      acceptance
    • selectKeyRingsFromCollection

      Set<R> selectKeyRingsFromCollection(O identifier, C keyRingCollection)
      Iterate of the given
      keyRingCollection
      and return a Set of all acceptable keyRings in the collection, based on the given
      identifier
      .
      Parameter:
      identifier - identifier
      keyRingCollection - collection
      Gibt zurück:
      set of acceptable key rings
    • selectKeyRingsFromCollections

      org.pgpainless.util.MultiMap<O,R> selectKeyRingsFromCollections(org.pgpainless.util.MultiMap<O,C> keyRingCollections)
      Iterate over all keyRings in the given MultiMap of keyRingCollections and return a new MultiMap which for every identifier (key of the map) contains all acceptable keyRings based on that identifier.
      Parameter:
      keyRingCollections - MultiMap of identifiers and keyRingCollections.
      Gibt zurück:
      MultiMap of identifiers and acceptable keyRings.