Interface KeyRingSelectionStrategy<R,​C,​O>

    • Method Detail

      • accept

        boolean accept​(O identifier,
                       R keyRing)
        Return true, if the filter accepts the given
        keyRing
        based on the given
        identifier
        .
        Parameters:
        identifier - identifier
        keyRing - key ring
        Returns:
        acceptance
      • selectKeyRingsFromCollection

        java.util.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
        .
        Parameters:
        identifier - identifier
        keyRingCollection - collection
        Returns:
        set of acceptable key rings
      • selectKeyRingsFromCollections

        MultiMap<O,​R> selectKeyRingsFromCollections​(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.
        Parameters:
        keyRingCollections - MultiMap of identifiers and keyRingCollections.
        Returns:
        MultiMap of identifiers and acceptable keyRings.