set_server_identity


Description:

public void set_server_identity (SocketConnectable identity)

Sets this's expected server identity, which is used both to tell servers on virtual hosts which certificate to present, and also to let this know what name to look for in the certificate when performing g_tls_certificate_bad_identity validation, if enabled.

Parameters:

this

the TlsClientConnection

identity

a SocketConnectable describing the expected server identity