mirror of
https://github.com/corda/corda.git
synced 2025-04-07 11:27:01 +00:00
Clean up comments
This commit is contained in:
parent
e3aef96b09
commit
5a20b67ce2
@ -17,6 +17,7 @@ import javax.net.ssl.*
|
||||
* implementation. This is a work around to the fact that ArtemisMQ and probably many other libraries
|
||||
* don't correctly configure the SSLParameters with setEndpointIdentificationAlgorithm and thus don't check
|
||||
* that the certificate matches with the DNS entry requested. This exposes us to man in the middle attacks.
|
||||
* The issue has been raised with ArtemisMQ: https://issues.apache.org/jira/browse/ARTEMIS-656
|
||||
*/
|
||||
fun registerWhitelistTrustManager() {
|
||||
if (Security.getProvider("WhitelistTrustManager") == null) {
|
||||
@ -62,7 +63,7 @@ object WhitelistTrustManagerProvider : Provider("WhitelistTrustManager",
|
||||
* If this is a new entry it will internally request a DNS lookup which may block the calling thread.
|
||||
*/
|
||||
fun addWhitelistEntry(serverName: String) {
|
||||
if (!_whitelist.contains(serverName)) { // Double check locking to avoid DNS cost. Safe as we never delete from the set
|
||||
if (!_whitelist.contains(serverName)) { // Safe as we never delete from the set
|
||||
addWhitelistEntries(listOf(serverName))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user