类:tls.TLSSocket


【Class: tls.TLSSocket

对写入的数据进行透明加密,并处理所有必要的 TLS 协商。

【Performs transparent encryption of written data and all required TLS negotiation.】

tls.TLSSocket 的实例实现了双工 接口。

【Instances of tls.TLSSocket implement the duplex Stream interface.】

返回 TLS 连接元数据的方法(例如 tls.TLSSocket.getPeerCertificate())仅在连接打开时返回数据。

【Methods that return TLS connection metadata (e.g. tls.TLSSocket.getPeerCertificate()) will only return data while the connection is open.】