Package net.shibboleth.saml.relyingparty
Class RelyingPartyConfigurationSupport
java.lang.Object
net.shibboleth.saml.relyingparty.RelyingPartyConfigurationSupport
Support functions for building
RelyingPartyConfiguration objects with SAML-aware
activation conditions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyGroup(Collection<String> groupNames, MetadataResolver resolver) A shorthand method for constructing aBasicRelyingPartyConfigurationwith an activation condition based on one or moreEntitiesDescriptorgroups, and optionally viaAffiliationDescriptorlookup.byMappedTag(Collection<EntityAttributesPredicate.Candidate> candidates, boolean trim, boolean matchAll) A shorthand method for constructing aBasicRelyingPartyConfigurationwith an activation condition based on aMappedEntityAttributesPredicate.byName(Collection<String> relyingPartyIds) A shorthand method for constructing aBasicRelyingPartyConfigurationwith an activation condition based on one or more relying party IDs.byTag(Collection<EntityAttributesPredicate.Candidate> candidates, boolean trim, boolean matchAll) A shorthand method for constructing aBasicRelyingPartyConfigurationwith an activation condition based on anEntityAttributesPredicate.
-
Constructor Details
-
RelyingPartyConfigurationSupport
private RelyingPartyConfigurationSupport()Constructor.
-
-
Method Details
-
byName
@Nonnull public static BasicRelyingPartyConfiguration byName(@Nonnull Collection<String> relyingPartyIds) A shorthand method for constructing aBasicRelyingPartyConfigurationwith 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 BasicRelyingPartyConfiguration byGroup(@Nonnull Collection<String> groupNames, @Nullable MetadataResolver resolver) A shorthand method for constructing aBasicRelyingPartyConfigurationwith an activation condition based on one or moreEntitiesDescriptorgroups, and optionally viaAffiliationDescriptorlookup.- 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 BasicRelyingPartyConfiguration byTag(@Nonnull Collection<EntityAttributesPredicate.Candidate> candidates, boolean trim, boolean matchAll) A shorthand method for constructing aBasicRelyingPartyConfigurationwith 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 BasicRelyingPartyConfiguration byMappedTag(@Nonnull Collection<EntityAttributesPredicate.Candidate> candidates, boolean trim, boolean matchAll) A shorthand method for constructing aBasicRelyingPartyConfigurationwith 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
-