Changing bind to OptionalBind instead #193
asger-weirsoee
started this conversation in
General
Replies: 1 comment 1 reply
-
Hello Asger, just to be sure - if you want only different CA chain, did you evaluate possibility to use another cert-validator ValidatorRecipe XML, used by Oxalis to detect Mode (TEST/PROD/LOCAL) - defined in peppol-security-2.1.0.jar pki folder and configured there in reference.xml? You can prepare similar XML with your rules and CA/Intermediate certs and "overwrite" globally the chain e.g. for PRODUCTION mode and provide another truststore. Or you want the same instance to run both Peppol and other CA chains? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a team that is actively working on implementing a plugin to Oxalis-AS4 (which we know is a plugin) to allow for another CA chain than PEPPOL. This would require that we were able to change parts of the call chain of the Oxalis-AS4 classes.
Now what we have to do is to check if a specific standard is used if so, we'd execute our specific code, or else we'd the Oxalis-AS4 plugin.
I've created somewhat of a POC but it would require that at certain places we'd have to replace the GUICE bind structure to use OptionalBind instead, and then place a default value, and I wanted to pick your brains about that.
Currently, we are not 100% certain on how or where we are going to implement our implementation, else I would've created a PR and taken the discussion there instead.
So now instead I thought we could have the discussion in the tab meant for it instead;
One of the place I think we'd want to use OptionalBind instead of bind is in the As4InboundModule.java
This makes it so that in my extension of the AS4 plugin, I can write:
And thus change which implementation that is bound to the As4EndpointsPublisher interface.
Now what I want to talk with you folks about, is;
Is there a reason for why you've used bind as the method in use, and would it be okay for you, if I created a PR once we found which place we wanted to change your AS4 plugin, to instead utilize the OptionalBind?
Beta Was this translation helpful? Give feedback.
All reactions