Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finagle-core: Stop Using Sun's HostnameChecker Directly
Summary: Problem `HostnameVerifier` uses Sun's `HostnameChecker` directly for hostname verification. This is no longer allowed in JDK 9 and will result in an `IllegalAccessException`. Solution Change Finagle's SSL/TLS configurations to use `HostnameChecker` indirectly by setting `SSLParameters#setEndpointIdentificationAlgorithm` to 'HTTPS' when a hostname has been included as part of an `SslClientConfiguration`. Result Hostname verification continues to work and an impediment for moving to JDK 9 has been removed. JIRA Issues: CSL-2956 Differential Revision: https://phabricator.twitter.biz/D144149
- Loading branch information
1 parent
dd1bba4
commit 1313d9b
Showing
6 changed files
with
56 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 0 additions & 38 deletions
38
finagle-core/src/main/scala/com/twitter/finagle/ssl/client/HostnameVerifier.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters