class JwtAuthenticationProvider extends TimeMeasuringAuthenticationProvider<AuthenticationResult> {

    @Override
    protected AuthenticationResult toFailedAuthenticationResult(final Throwable throwable,
            final DittoHeaders dittoHeaders) {

        LOGGER.withCorrelationId(dittoHeaders).debug("JWT Authentication failed.", throwable);
        return DefaultAuthenticationResult.failed(dittoHeaders, toDittoRuntimeException(throwable, dittoHeaders));
    }

    private  JwtAuthenticationProvider(final JwtAuthenticationResultProvider jwtAuthenticationResultProvider,
            final JwtValidator jwtValidator);

}