Created by: StanChe
Adding ConnectionValidator interface allows implementation of any customer's validation/authentication. Possible use cases may include mutual TLS authentication or IP white-listening tied up with certain SenderCompID. The validator is optional and the behaviour of existing clients will not change.
This will also address #388 (closed)
The Acceptor
is unfortunately not covered with tests and covering handleConnection
to verify the validator is working as expected will require a significant refactoring, or a more end-to-end style test.
Any feedback is welcome, if there are other ways to handle the strict mTLS auth that I've not found yet - please let me know.