Skip to content
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

SPARK-1994 Make use of the JRE certificates. #377

Merged
merged 2 commits into from
Aug 23, 2017

Conversation

Alameyo
Copy link
Member

@Alameyo Alameyo commented Aug 22, 2017

No description provided.

@Alameyo Alameyo requested a review from guusdk August 22, 2017 20:55
}
}
} catch (Exception e) {
Log.error(e.getMessage(), e);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really like Log.error( e.getMessage(), e), as it'll lead to duplicate text in the error. Perhaps you should change e.getMessage() with a short text describing what the code failed to do.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I changed exception for KeyStoreException and added message.



private KeyStore trustStore, blackListStore, exceptionsStore;
public final static File TRUSTED = new File(Spark.getSparkUserHome() + File.separator + "security" + File.separator + "truststore");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add in javadoc exactly what the purpose of every store is - so that Devs that look at this in the future understand how things are combined, and why.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added nice comment describing all Files/KeyStores

@guusdk guusdk merged commit d0c4f90 into igniterealtime:master Aug 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants