public class DefaultNameIdentifierFormatStrategy extends MetadataNameIdentifierFormatStrategy
| Modifier and Type | Field and Description |
|---|---|
private String |
defaultFormat
Default format to use if nothing else is known.
|
private org.slf4j.Logger |
log
Class logger.
|
private String |
profileId
Override the
ProfileConfiguration to look for rather than whatever's populated. |
private com.google.common.base.Function<ProfileRequestContext,RelyingPartyContext> |
relyingPartyContextLookupStrategy
Strategy used to locate the
RelyingPartyContext associated with a given ProfileRequestContext. |
| Constructor and Description |
|---|
DefaultNameIdentifierFormatStrategy()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
apply(ProfileRequestContext input) |
void |
setDefaultFormat(String format)
Set the default format to return.
|
void |
setProfileId(String id)
Set the profile configuration ID to locate in the
RelyingPartyConfiguration for the purposes of
establishing format precedence rules. |
void |
setRelyingPartyContextLookupStrategy(com.google.common.base.Function<ProfileRequestContext,RelyingPartyContext> strategy)
Set the strategy used to locate the
RelyingPartyContext associated with a given
ProfileRequestContext. |
setSSODescriptorLookupStrategy@Nonnull private final org.slf4j.Logger log
@Nonnull private com.google.common.base.Function<ProfileRequestContext,RelyingPartyContext> relyingPartyContextLookupStrategy
RelyingPartyContext associated with a given ProfileRequestContext.@Nullable private String profileId
ProfileConfiguration to look for rather than whatever's populated.public DefaultNameIdentifierFormatStrategy()
public void setRelyingPartyContextLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,RelyingPartyContext> strategy)
RelyingPartyContext associated with a given
ProfileRequestContext.strategy - strategy used to locate the RelyingPartyContext associated with a given
ProfileRequestContextpublic void setProfileId(@Nullable String id)
RelyingPartyConfiguration for the purposes of
establishing format precedence rules.
By default/without one set, the strategy is to use the configuration object populated in the
RelyingPartyContext.
id - profile ID to look forpublic void setDefaultFormat(@Nonnull@NotEmpty String format)
format - default format@Nullable public List<String> apply(@Nullable ProfileRequestContext input)
apply in interface com.google.common.base.Function<ProfileRequestContext,List<String>>apply in class MetadataNameIdentifierFormatStrategyCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.