class PreAuthenticatedAuthenticationProvider extends TimeMeasuringAuthenticationProvider<AuthenticationResult> {

    @Override
    public boolean isApplicable(final RequestContext requestContext) {
        return containsHeader(requestContext, HttpHeader.X_DITTO_PRE_AUTH) ||
                containsHeader(requestContext, HttpHeader.X_DITTO_DUMMY_AUTH);
    }

    private  PreAuthenticatedAuthenticationProvider();

}