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

      • 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