Help Center/ Meeting/ Client SDK Reference/ Electron SDK/ APIs/ Login Management Objects/ Setting Certificate Verification Information
Updated on 2024-09-13 GMT+08:00

Setting Certificate Verification Information

Function

This API is used to set certificate verification information.

Function Prototype

setCAVerifyInfo(CAVerifyInfo: CAVerifyInfo, onSetCAVerifyInfoResult?: (ret: SDKERR, reason: string) => void): voidsetCAVerifyInfo(CAVerifyInfo: CAVerifyInfo, onSetCAVerifyInfoResult?: (ret: SDKERR, reason: string) => void): void

Request Parameters

Table 1 Input parameter description
Parameter Mandatory Type Description
CAVerifyInfo Yes CAVerifyInfo Certificate verification information.
onSetCAVerifyInfoResult Yes (ret: SDKERR, reason: string) => void Callback of the certificate verification information.
Table 2 CAVerifyInfo
Parameter Mandatory Type Description
verifyMode Yes VerifyMode Verification mode.
certPath No string User-defined path for storing the certificate. If this parameter is left empty, the built-in certificate is used for verification.
Table 3 Enumerated values of VerifyMode
Enumeration Name Enumerated Value Description
VERIFY_MODE_NONE 0 No verification.
VERIFY_MODE_SERVER 1 Verify the server certificate.

Return Values

void

Callback Method Parameters

(ret: SDKERR, reason: string) => void

Table 4 Input parameter description
Parameter Type Description
ret For details about SDKERR, see Error Code Reference. Error code.
reason string Error description.