Class DefaultNameIdentifierFormatStrategy
java.lang.Object
org.opensaml.saml.common.profile.logic.MetadataNameIdentifierFormatStrategy
net.shibboleth.idp.saml.profile.context.navigate.DefaultNameIdentifierFormatStrategy
- All Implemented Interfaces:
Function<ProfileRequestContext,List<String>>
Function to filter a set of candidate NameIdentifier/NameID Format values derived from an entity's SAML metadata
against configuration preferences.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringDefault format to use if nothing else is known.private final org.slf4j.LoggerClass logger.private StringOverride theProfileConfigurationto look for rather than whatever's populated.Strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ProfileRequestContext input) voidsetDefaultFormat(String format) Set the default format to return.voidsetProfileId(String id) Set the profile configuration ID to locate in theRelyingPartyConfigurationfor the purposes of establishing format precedence rules.voidSet the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.Methods inherited from class org.opensaml.saml.common.profile.logic.MetadataNameIdentifierFormatStrategy
setSSODescriptorLookupStrategy
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
relyingPartyContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategyStrategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext. -
profileId
Override theProfileConfigurationto look for rather than whatever's populated. -
defaultFormat
Default format to use if nothing else is known.
-
-
Constructor Details
-
DefaultNameIdentifierFormatStrategy
public DefaultNameIdentifierFormatStrategy()Constructor.
-
-
Method Details
-
setRelyingPartyContextLookupStrategy
public void setRelyingPartyContextLookupStrategy(@Nonnull Function<ProfileRequestContext, RelyingPartyContext> strategy) Set the strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext.- Parameters:
strategy- strategy used to locate theRelyingPartyContextassociated with a givenProfileRequestContext
-
setProfileId
Set the profile configuration ID to locate in theRelyingPartyConfigurationfor the purposes of establishing format precedence rules.By default/without one set, the strategy is to use the configuration object populated in the
RelyingPartyContext.- Parameters:
id- profile ID to look for
-
setDefaultFormat
Set the default format to return.- Parameters:
format- default format
-
apply
- Specified by:
applyin interfaceFunction<ProfileRequestContext,List<String>> - Overrides:
applyin classMetadataNameIdentifierFormatStrategy
-