Skip to content

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

Merged

Conversation

uliSchuster
Copy link
Contributor

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.

@@ -89,7 +89,7 @@ private void extractAssociatedAddresses() {
try {
X509Certificate certificate = getCertificate();
if (null != certificate) {
Principal principal = certificate.getSubjectDN();
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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!

@bbottema
Copy link
Member

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.

@bbottema bbottema changed the title feat: Make cryptographic algorithms configurable Feature: Make cryptographic algorithms configurable Jul 14, 2022
@uliSchuster
Copy link
Contributor Author

Sorry for my late reply, I just returned from vacation.

@bbottema bbottema merged commit ab6d9e3 into simple-java-mail:master Apr 5, 2023
@bbottema
Copy link
Member

bbottema commented Apr 5, 2023

Change merged and released in v2.1.0. Thanks!

@bbottema bbottema added enhancement New feature or request and removed need-user-input labels Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants