Class FlowDescriptorLookupFunction<T extends net.shibboleth.idp.profile.interceptor.ProfileInterceptorFlowDescriptor>

  • Type Parameters:
    T - the profile interceptor flow descriptor type to locate
    All Implemented Interfaces:
    Function<org.opensaml.profile.context.ProfileRequestContext,​T>

    public class FlowDescriptorLookupFunction<T extends net.shibboleth.idp.profile.interceptor.ProfileInterceptorFlowDescriptor>
    extends Object
    implements Function<org.opensaml.profile.context.ProfileRequestContext,​T>
    Function that returns a profile interceptor flow descriptor from a profile request context using a lookup strategy.
    • Field Detail

      • interceptorFlowDescriptorType

        @Nonnull
        private final Class<T extends net.shibboleth.idp.profile.interceptor.ProfileInterceptorFlowDescriptor> interceptorFlowDescriptorType
        Profile interceptor flow descriptor type to look up.
      • interceptorContextlookupStrategy

        @Nonnull
        private Function<org.opensaml.profile.context.ProfileRequestContext,​net.shibboleth.idp.profile.context.ProfileInterceptorContext> interceptorContextlookupStrategy
        Profile interceptor context lookup strategy.
    • Constructor Detail

      • FlowDescriptorLookupFunction

        public FlowDescriptorLookupFunction​(@Nonnull
                                            Class<T> type)
        Constructor.
        Parameters:
        type - profile interceptor flow descriptor type to look up
    • Method Detail

      • setInterceptorContextlookupStrategy

        public void setInterceptorContextlookupStrategy​(@Nonnull
                                                        Function<org.opensaml.profile.context.ProfileRequestContext,​net.shibboleth.idp.profile.context.ProfileInterceptorContext> strategy)
        Set the interceptor context lookup strategy.
        Parameters:
        strategy - interceptor context lookup strategy
      • apply

        @Nullable
        public T apply​(@Nullable
                       org.opensaml.profile.context.ProfileRequestContext input)
        Specified by:
        apply in interface Function<org.opensaml.profile.context.ProfileRequestContext,​T extends net.shibboleth.idp.profile.interceptor.ProfileInterceptorFlowDescriptor>