Class DefaultDataEncryptionAlgorithmsLookupStrategy

    • Constructor Detail

      • DefaultDataEncryptionAlgorithmsLookupStrategy

        protected DefaultDataEncryptionAlgorithmsLookupStrategy​(@Nullable
                                                                AlgorithmRegistry registry)
        Constructor.
        Parameters:
        registry - the algorithm registry to use when resolving algorithm URIs. Can be null to use the global registry.
    • Method Detail

      • getDataEncryptionAlgorithmsFromConfiguration

        @Nonnull
        protected List<String> getDataEncryptionAlgorithmsFromConfiguration​(@Nonnull
                                                                            CriteriaSet criteria,
                                                                            @Nonnull
                                                                            Predicate<String> includeExcludePredicate)
        Get the data encryption 'enc' algorithms from the EncryptionConfiguration inside the criteria set.
        Parameters:
        criteria - to pull out the EncryptionConfiguration
        includeExcludePredicate - the include and exclude predicates to filter the credentials with
        Returns:
        the data/content encryption algorithms from the configuration, an empty list otherwise