Class RelyingPartyConfigurationSupport

java.lang.Object
net.shibboleth.sp.impl.RelyingPartyConfigurationSupport

public final class RelyingPartyConfigurationSupport extends Object
This is a duplicate of a higher level class in order to override the "type" of the RelyingPartyConfiguration to create. // TODO: adjust the original class to support overriding type creation somehow
  • Constructor Details

    • RelyingPartyConfigurationSupport

      private RelyingPartyConfigurationSupport()
      Constructor.
  • Method Details

    • byName

      @Nonnull public static RelyingPartyConfiguration byName(@Nonnull Collection<String> relyingPartyIds)
      A shorthand method for constructing a RelyingPartyConfiguration with an activation condition based on one or more relying party IDs.

      If a single ID is supplied, then the ID is also set as the identifier for the configuration.

      Parameters:
      relyingPartyIds - the relying parties for which the configuration should be active
      Returns:
      a default-constructed configuration with the appropriate condition set
    • byGroup

      @Nonnull public static RelyingPartyConfiguration byGroup(@Nonnull Collection<String> groupNames, @Nullable MetadataResolver resolver)
      A shorthand method for constructing a RelyingPartyConfiguration with an activation condition based on one or more EntitiesDescriptor groups, and optionally via AffiliationDescriptor lookup.
      Parameters:
      groupNames - the group names
      resolver - optional metadata source for affiliation lookup
      Returns:
      a default-constructed configuration with the appropriate condition set
    • byTag

      @Nonnull public static RelyingPartyConfiguration byTag(@Nonnull Collection<EntityAttributesPredicate.Candidate> candidates, boolean trim, boolean matchAll)
      A shorthand method for constructing a RelyingPartyConfiguration with an activation condition based on an EntityAttributesPredicate.
      Parameters:
      candidates - the candidate rules
      trim - true iff tag values in metadata should be trimmed before comparison
      matchAll - true iff all the candidate rules are required to match
      Returns:
      a default-constructed configuration with the appropriate condition set
    • byMappedTag

      @Nonnull public static RelyingPartyConfiguration byMappedTag(@Nonnull Collection<EntityAttributesPredicate.Candidate> candidates, boolean trim, boolean matchAll)
      A shorthand method for constructing a RelyingPartyConfiguration with an activation condition based on a MappedEntityAttributesPredicate.
      Parameters:
      candidates - the candidate rules
      trim - true iff tag values in metadata should be trimmed before comparison
      matchAll - true iff all the candidate rules are required to match
      Returns:
      a default-constructed configuration with the appropriate condition set