tlsSocket.getEphemeralKeyInfo()
- 返回:<Object>
返回一个对象,表示客户端连接中 完美前向保密 临时密钥交换参数的类型、名称和大小。当密钥交换不是临时密钥交换时,它返回一个空对象。由于此功能仅支持客户端套接字,如果在服务器套接字上调用,则返回 null。支持的类型为 'DH' 和 'ECDH'。仅当类型为 'ECDH' 时,name 属性才可用。
【Returns an object representing the type, name, and size of parameter of
an ephemeral key exchange in perfect forward secrecy on a client
connection. It returns an empty object when the key exchange is not
ephemeral. As this is only supported on a client socket; null is returned
if called on a server socket. The supported types are 'DH' and 'ECDH'. The
name property is available only when type is 'ECDH'.】
例如:{ type: 'ECDH', name: 'prime256v1', size: 256 }。
【For example: { type: 'ECDH', name: 'prime256v1', size: 256 }.】