-
Notifications
You must be signed in to change notification settings - Fork 6
Feature: Make cryptographic algorithms configurable #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Make cryptographic algorithms configurable #3
Conversation
@@ -89,7 +89,7 @@ private void extractAssociatedAddresses() { | |||
try { | |||
X509Certificate certificate = getCertificate(); | |||
if (null != certificate) { | |||
Principal principal = certificate.getSubjectDN(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you elaborate on this change please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to its JavaDocs, getSubjectDN()
is deprecated:
Deprecated
Use getSubjectX500Principal instead. This method returns the subject as an implementation specific Principal object, which should not be relied upon by portable code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dear Benny
Any news on my PR? We would like to update our dependencies and are, therefore, hoping on a new release. Thanks very much!
Hi, I finally got some time to look into this. Thank you for your work! I have one review question open before I merge and release, please have a look. |
Sorry for my late reply, I just returned from vacation. |
Change merged and released in v2.1.0. Thanks! |
Dear Benny
Thanks for the great work reviving the S/MIME Util library! One of the features you were requesting from the previous maintainer was to make the cryptographic algorithms configurable. I do have the same need for some projects I am working on. Therefore, I added support for this type of configuration, without breaking the existing API. To check that configuration is indeed working, I added several tests. I hope my changes are helpful and fit with your architectural ideas for the library.
Your parent POM did not quite work out for my setup; therefore I removed the upstream dependence; I hope it is not too much of an issue to reintroduce it and make it work for your build pipelines.