Class FinalizeMultiFactorAuthentication.DefaultResultMergingStrategy

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

    public static class FinalizeMultiFactorAuthentication.DefaultResultMergingStrategy
    extends Object
    implements Function<org.opensaml.profile.context.ProfileRequestContext,​net.shibboleth.idp.authn.AuthenticationResult>
    Default merging strategy to combine individual AuthenticationResult objects into a single result.

    The default strategy searches for a MultiFactorAuthenticationContext child of an AuthenticationContext child of the input context, and combines all of the Subject content from MultiFactorAuthenticationContext.getActiveResults() into a single result.

    It assigns the flow ID based on AuthenticationContext.getAttemptedFlow(), and also preserves the original result objects in wrapper principals within the new result.

    • Constructor Detail

      • DefaultResultMergingStrategy

        public DefaultResultMergingStrategy()
    • Method Detail

      • apply

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