DelegatingAuthenticationEntryPoint.Builder throws an exception with the following usage:

DelegatingAuthenticationEntryPoint.builder().defaultEntryPoint(entryPoint).build()

It should instead return the entryPoint as the meaning is that this entry point should be the one always used.