arrowhead-f / client-java

Arrowhead Framework Client Skeletons in Java
https://forge.soa4d.org/plugins/mediawiki/wiki/arrowhead-f/index.php/Main_Page
Apache License 2.0
1 stars 6 forks source link

Some questions for the refactored branch #5

Closed eudyptula closed 6 years ago

eudyptula commented 6 years ago
uzoltan commented 6 years ago

I will check these, and write a detailed answer tomorrow.

eudyptula commented 6 years ago

Ok, was stopping for today anyways ;)

uzoltan commented 6 years ago

1) Yes, I don't see any problem with that. 2) I think if isSecure is true but the creation of securityContext fails, the client should just exit with an exception. 3) Right now it is that way on purpose. If I understand its Javadocs correctly, the secure client can terminate the connection (in the handshake phase), if the hostname and the servers first response about its identity are not in sync (according to some default rules). 4) I dont think it's important to do so. My main motivation behind using the builder pattern with the SRF was to simplify building one for the client, since it has 5+ possible properties. OrchestrationForms are only created by the Orchestrator, and it uses the 3 parameter constructor + setters only because the code logic dictates it that way. A 3 parameter constructor does not warrant a builder pattern in my opinion. 5) BasicConsumer should certainly stay. The proof of concept cert_request module is kinda redundant now, since I moved its logic into the client-common module too. I did this module as a test, before creating the CertificateBootstrapper class. I think we can delete it.

Please check the arrowhead-dev slack channel, I asked a question there.