Class FinalizeAuthentication

    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • canonicalPrincipalName

        @Nullable
        private String canonicalPrincipalName
        The principal name extracted from the context tree.
    • Constructor Detail

      • FinalizeAuthentication

        public FinalizeAuthentication()
    • Method Detail

      • 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
      • findMatchingPrincipal

        @Nullable
        protected Principal findMatchingPrincipal​(@Nonnull
                                                  AuthenticationContext authenticationContext,
                                                  @Nonnull
                                                  RequestedPrincipalContext requestedPrincipalCtx)
        Evaluate request criteria and the AuthenticationResult to locate a Principal in the result that satisfies the request criteria.

        If a weighting map is supplied, the Principal returned is the one that both satisfies the request and is highest weighted according to the underlying flow descriptor.

        Parameters:
        authenticationContext - authentication context
        requestedPrincipalCtx - request criteria
        Returns:
        matching Principal, or null
      • checkProxyRestrictions

        private boolean checkProxyRestrictions​(@Nonnull
                                               ProfileRequestContext profileRequestContext,
                                               @Nonnull
                                               Subject subject)
        Check for proxy restrictions and evaluate them against the request.
        Parameters:
        profileRequestContext - current profile request context
        subject - the authentication result's subject
        Returns:
        true iff processing should continue