By constructing a customized socket factory we can customize the behavior of JSSE.
通过构造一个定制的套接字工厂,我们可以定制JSSE的行为。
Essentially, we get an SSL socket factory (default should be okay), create an SSL socket out of it, and begin reading writing to it.
实质上,我们获得ssl套接字工厂(缺省的也应该可以),从中创建ssl套接字,并且开始对其进行读写。
Use the current SSLContext object to get a SSL socket Factory and instantiate an SSL socket out of it, as described in the previous section.
使用当前的SSLContext对象来获取SSL Socket Factory并且实例化其中的ssl套接字,如同前面章节中所描述的。
应用推荐