Setting Certificate Verification Information
setCaVerifyParam:
API Description
This API is used to set certificate verification information.
Precautions
- This API is optional. By default, certificate verification is disabled.
Method Definition
1
|
+ (HWMSDKERR)setCaVerifyParam:(HWMCaVerifyParam *)param; |
Parameter Description
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
isVerify |
Yes |
BOOL |
Whether verification is enabled. The default value is NO. |
caPath |
No |
NSString * |
User-defined path for storing the certificate. If this parameter is left empty, the built-in certificate is used for verification. |
Return Values
Whether the API is successfully called.
Sample Code
HWMCaVerifyParam *param = [[HWMCaVerifyParam alloc] init]; param.isVerify = isVerify; param.caPath = caPath; [HWMSdk setCaVerifyParam:param];
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot