Class TransitionMultiFactorAuthentication

    • Constructor Detail

      • TransitionMultiFactorAuthentication

        TransitionMultiFactorAuthentication()
        Constructor.
    • Method Detail

      • setEventContextLookupStrategy

        public void setEventContextLookupStrategy​(@Nonnull
                                                  Function<ProfileRequestContext,​EventContext> strategy)
        Set the lookup strategy to use for the current event context.
        Parameters:
        strategy - lookup strategy
      • setValidateLoginTransitions

        public void setValidateLoginTransitions​(boolean flag)
        Set whether to validate transitions to a new login flow by evaluating the request and ensuring options like IsPassive and ForceAuthn are compatible with the flow.

        Defaults to 'true', override if your custom transition logic handles these issues.

        Parameters:
        flag - flag to set
      • doPreExecute

        protected boolean doPreExecute​(@Nonnull
                                       ProfileRequestContext profileRequestContext,
                                       @Nonnull
                                       AuthenticationContext authenticationContext)
        Performs this authentication action's pre-execute step. Default implementation just returns true.
        Overrides:
        doPreExecute in class AbstractAuthenticationAction
        Parameters:
        profileRequestContext - the current IdP profile request context
        authenticationContext - the current authentication context
        Returns:
        true iff execution should continue
      • doExecute

        protected void doExecute​(@Nonnull
                                 ProfileRequestContext profileRequestContext,
                                 @Nonnull
                                 AuthenticationContext authenticationContext)
        Performs this authentication action. Default implementation throws an exception.
        Overrides:
        doExecute in class AbstractAuthenticationAction
        Parameters:
        profileRequestContext - the current IdP profile request context
        authenticationContext - the current authentication context
      • doTransition

        private void doTransition​(@Nonnull
                                  ProfileRequestContext profileRequestContext,
                                  @Nonnull
                                  AuthenticationContext authenticationContext,
                                  @Nonnull
                                  MultiFactorAuthenticationTransition transition)
        Respond to a signal to transition the MFA process to a new flow.
        Parameters:
        profileRequestContext - profile request context
        authenticationContext - authentication context
        transition - transition rule to use