This commit is contained in:
Looly
2022-02-21 01:15:04 +08:00
parent 8251847d1f
commit 9151aa8968
6 changed files with 17 additions and 141 deletions

View File

@@ -90,6 +90,6 @@ public class SSLSocketFactoryBuilder implements SSLProtocols {
* @throws KeyManagementException Key管理异常
*/
public SSLSocketFactory build() throws NoSuchAlgorithmException, KeyManagementException {
return this.sslContextBuilder.build().getSocketFactory();
return this.sslContextBuilder.buildChecked().getSocketFactory();
}
}