Class PopulateMultiFactorAuthenticationContext.DefaultResultLookupStrategy

  • All Implemented Interfaces:
    Function<org.opensaml.profile.context.ProfileRequestContext,​Collection<net.shibboleth.idp.authn.AuthenticationResult>>
    Enclosing class:
    PopulateMultiFactorAuthenticationContext

    private class PopulateMultiFactorAuthenticationContext.DefaultResultLookupStrategy
    extends Object
    implements Function<org.opensaml.profile.context.ProfileRequestContext,​Collection<net.shibboleth.idp.authn.AuthenticationResult>>
    Default strategy function to extract embedded AuthenticationResults from inside the AuthenticationResultPrincipal collection of an active AuthenticationResult of the currently executing flow.
    • Constructor Detail

      • DefaultResultLookupStrategy

        private DefaultResultLookupStrategy()
    • Method Detail

      • apply

        @Nullable
        public Collection<net.shibboleth.idp.authn.AuthenticationResult> apply​(@Nullable
                                                                               org.opensaml.profile.context.ProfileRequestContext input)
        Specified by:
        apply in interface Function<org.opensaml.profile.context.ProfileRequestContext,​Collection<net.shibboleth.idp.authn.AuthenticationResult>>
      • processActiveResult

        void processActiveResult​(@Nonnull
                                 org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
                                 @Nonnull
                                 net.shibboleth.idp.authn.context.AuthenticationContext authenticationContext,
                                 @Nonnull
                                 Collection<net.shibboleth.idp.authn.AuthenticationResult> results,
                                 @Nonnull
                                 net.shibboleth.idp.authn.AuthenticationResult candidate)
        Check an active result for possible inclusion in the returned collection.
        Parameters:
        profileRequestContext - current profile request context
        authenticationContext - current authentication context
        results - the collection to add to
        candidate - the result to evaluate