Class FunctionDrivenMetadataIndex

  • All Implemented Interfaces:
    org.opensaml.saml.metadata.resolver.index.MetadataIndex

    public class FunctionDrivenMetadataIndex
    extends Object
    implements org.opensaml.saml.metadata.resolver.index.MetadataIndex
    Implementation of MetadataIndex which is based on injected strategy functions.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Function<net.shibboleth.utilities.java.support.resolver.CriteriaSet,​Set<org.opensaml.saml.metadata.resolver.index.MetadataIndexKey>> criteriaStrategy
      Function for producing index keys from a CriteriaSet.
      private Function<org.opensaml.saml.saml2.metadata.EntityDescriptor,​Set<org.opensaml.saml.metadata.resolver.index.MetadataIndexKey>> descriptorStrategy
      Function for producing index keys from an EntityDescriptor.
    • Constructor Summary

      Constructors 
      Constructor Description
      FunctionDrivenMetadataIndex​(Function<org.opensaml.saml.saml2.metadata.EntityDescriptor,​Set<org.opensaml.saml.metadata.resolver.index.MetadataIndexKey>> descriptorFunction, Function<net.shibboleth.utilities.java.support.resolver.CriteriaSet,​Set<org.opensaml.saml.metadata.resolver.index.MetadataIndexKey>> criteriaFunction)
      Constructor.
    • Field Detail

      • criteriaStrategy

        @Nonnull
        private Function<net.shibboleth.utilities.java.support.resolver.CriteriaSet,​Set<org.opensaml.saml.metadata.resolver.index.MetadataIndexKey>> criteriaStrategy
        Function for producing index keys from a CriteriaSet.
      • descriptorStrategy

        @Nonnull
        private Function<org.opensaml.saml.saml2.metadata.EntityDescriptor,​Set<org.opensaml.saml.metadata.resolver.index.MetadataIndexKey>> descriptorStrategy
        Function for producing index keys from an EntityDescriptor.
    • Constructor Detail

      • FunctionDrivenMetadataIndex

        public FunctionDrivenMetadataIndex​(@Nonnull
                                           Function<org.opensaml.saml.saml2.metadata.EntityDescriptor,​Set<org.opensaml.saml.metadata.resolver.index.MetadataIndexKey>> descriptorFunction,
                                           @Nonnull
                                           Function<net.shibboleth.utilities.java.support.resolver.CriteriaSet,​Set<org.opensaml.saml.metadata.resolver.index.MetadataIndexKey>> criteriaFunction)
        Constructor.
        Parameters:
        descriptorFunction - function for producing index keys from an EntityDescriptor
        criteriaFunction - function for producing index keys from a CriteriaSet
    • Method Detail

      • generateKeys

        @Nullable
        @NonnullElements
        @Unmodifiable
        @NotLive
        public Set<org.opensaml.saml.metadata.resolver.index.MetadataIndexKey> generateKeys​(@Nonnull
                                                                                            net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet)
        Specified by:
        generateKeys in interface org.opensaml.saml.metadata.resolver.index.MetadataIndex
      • generateKeys

        @Nullable
        @NonnullElements
        @Unmodifiable
        @NotLive
        public Set<org.opensaml.saml.metadata.resolver.index.MetadataIndexKey> generateKeys​(@Nonnull
                                                                                            org.opensaml.saml.saml2.metadata.EntityDescriptor descriptor)
        Specified by:
        generateKeys in interface org.opensaml.saml.metadata.resolver.index.MetadataIndex