Class RelyingPartyConfigurationSupport
java.lang.Object
net.shibboleth.idp.saml.relyingparty.impl.RelyingPartyConfigurationSupport
Support functions for building
RelyingPartyConfiguration
objects with SAML functionality.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RelyingPartyConfiguration
byGroup
(Collection<String> groupNames, MetadataResolver resolver) A shorthand method for constructing aRelyingPartyConfiguration
with an activation condition based on one or moreEntitiesDescriptor
groups, and optionally viaAffiliationDescriptor
lookup.static RelyingPartyConfiguration
byMappedTag
(Collection<EntityAttributesPredicate.Candidate> candidates, boolean trim, boolean matchAll) A shorthand method for constructing aRelyingPartyConfiguration
with an activation condition based on aMappedEntityAttributesPredicate
.static RelyingPartyConfiguration
byName
(Collection<String> relyingPartyIds) A shorthand method for constructing aRelyingPartyConfiguration
with an activation condition based on one or more relying party IDs.static RelyingPartyConfiguration
byTag
(Collection<EntityAttributesPredicate.Candidate> candidates, boolean trim, boolean matchAll) A shorthand method for constructing aRelyingPartyConfiguration
with an activation condition based on anEntityAttributesPredicate
.
-
Constructor Details
-
RelyingPartyConfigurationSupport
private RelyingPartyConfigurationSupport()Constructor.
-
-
Method Details
-
byName
@Nonnull public static RelyingPartyConfiguration byName(@Nonnull @NonnullElements Collection<String> relyingPartyIds) A shorthand method for constructing aRelyingPartyConfiguration
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 @NonnullElements Collection<String> groupNames, @Nullable MetadataResolver resolver) A shorthand method for constructing aRelyingPartyConfiguration
with an activation condition based on one or moreEntitiesDescriptor
groups, and optionally viaAffiliationDescriptor
lookup.- Parameters:
groupNames
- the group namesresolver
- optional metadata source for affiliation lookup- Returns:
- a default-constructed configuration with the appropriate condition set
-
byTag
@Nonnull public static RelyingPartyConfiguration byTag(@Nonnull @NonnullElements Collection<EntityAttributesPredicate.Candidate> candidates, boolean trim, boolean matchAll) A shorthand method for constructing aRelyingPartyConfiguration
with an activation condition based on anEntityAttributesPredicate
.- Parameters:
candidates
- the candidate rulestrim
- true iff tag values in metadata should be trimmed before comparisonmatchAll
- 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 @NonnullElements Collection<EntityAttributesPredicate.Candidate> candidates, boolean trim, boolean matchAll) A shorthand method for constructing aRelyingPartyConfiguration
with an activation condition based on aMappedEntityAttributesPredicate
.- Parameters:
candidates
- the candidate rulestrim
- true iff tag values in metadata should be trimmed before comparisonmatchAll
- true iff all the candidate rules are required to match- Returns:
- a default-constructed configuration with the appropriate condition set
-