Class SectorIdentifierLookupFunction

  • All Implemented Interfaces:
    Function<org.opensaml.profile.context.ProfileRequestContext,​String>, net.shibboleth.utilities.java.support.component.Component, net.shibboleth.utilities.java.support.component.DestructableComponent, net.shibboleth.utilities.java.support.component.IdentifiableComponent, net.shibboleth.utilities.java.support.component.IdentifiedComponent, net.shibboleth.utilities.java.support.component.InitializableComponent, org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.profile.context.ProfileRequestContext,​String>

    public class SectorIdentifierLookupFunction
    extends net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
    implements org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.profile.context.ProfileRequestContext,​String>
    A function that returns sector identifier obtained via a lookup function. The value is host component of registered sector_identifier_uri or host component of the registered redirect_uri in case there is no sector_identifier_uri. In the latter case there must be only on registered redirect_uri or null is returned.

    If a specific setting is unavailable, a null value is returned.

    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • oidcMetadataContextLookupStrategy

        @Nonnull
        private Function<org.opensaml.profile.context.ProfileRequestContext,​OIDCMetadataContext> oidcMetadataContextLookupStrategy
        Strategy function to lookup OIDC metadata context .
    • Constructor Detail

      • SectorIdentifierLookupFunction

        public SectorIdentifierLookupFunction()
        Constructor.
    • Method Detail

      • setOIDCMetadataContextLookupStrategy

        public void setOIDCMetadataContextLookupStrategy​(@Nonnull
                                                         Function<org.opensaml.profile.context.ProfileRequestContext,​OIDCMetadataContext> strategy)
        Set the lookup strategy to use to locate the OIDCMetadataContext.
        Parameters:
        strategy - lookup function to use
      • apply

        @Nullable
        public String apply​(@Nullable
                            org.opensaml.profile.context.ProfileRequestContext input)
        Specified by:
        apply in interface Function<org.opensaml.profile.context.ProfileRequestContext,​String>