Class InitializeRequestedPrincipalContext

    • Constructor Detail

      • InitializeRequestedPrincipalContext

        public InitializeRequestedPrincipalContext()
        Constructor.
    • Method Detail

      • setReplaceExistingContext

        public void setReplaceExistingContext​(boolean flag)
        Whether any existing RequestedPrincipalContext should be replaced, defaults to "false".

        Normally an existing context would indicate requirements that shouldn't be circumvented to comply with expected profile behavior.

        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