Interface CredentialValidator

    • Method Detail

      • validate

        @Nullable
        Subject validate​(@Nonnull
                         ProfileRequestContext profileRequestContext,
                         @Nonnull
                         AuthenticationContext authenticationContext,
                         @Nullable
                         CredentialValidator.WarningHandler warningHandler,
                         @Nullable
                         CredentialValidator.ErrorHandler errorHandler)
                  throws Exception
        Validate any credentials found in a supported form within the input context tree and produce a Subject as the outcome.

        A null result is used to signal that validation was not attempted.

        Parameters:
        profileRequestContext - profile request context
        authenticationContext - authentication context
        warningHandler - optional warning handler interface
        errorHandler - optional error handler interface
        Returns:
        result of a successful validation, or null
        Throws:
        Exception - when validation is unsuccessful due to a failed attempt