Defines Client Security object with security-params and methods.
Public Member Functions | |
ClientSecurity () | |
ClientSecurity Constructor with no params. | |
ClientSecurity (ClientSecurityType type) | |
ClientSecurity Constructor with single param. | |
void | set_type (ClientSecurityType t) |
Sets the security type. | |
cy_rslt_t | set_user_id_password (const char *user_id, const char *password) |
Set User-ID and password as SecurityParams. More... | |
cy_rslt_t | set_tls_params (const char *client_name, const char *private_key, const char *certificate) |
Set TLS as SecurityParams. More... | |
cy_rslt_t | set_tls_params (const char *client_name) |
Set TLS as SecurityParams. More... | |
cy_rslt_t | set_tls_root_certificate (const char *root_cert) |
Set TLS Root-Certificate to the object. More... | |
ClientSecurityType | get_type (void) |
Return Security-type associated with the object. More... | |
const char * | get_username (void) |
Return user-id(user-id) associated with the object. More... | |
const char * | get_password (void) |
Return password associated with the object. More... | |
const char * | get_tls_client_name (void) |
Return TLS Client-name. More... | |
const char * | get_device_key (void) |
Return Private Device-key in use. More... | |
const char * | get_device_certificate (void) |
Return Device certificate. More... | |
const char * | get_tls_root_certificate (void) |
Return TLS root certificate. More... | |
cy_rslt_t ClientSecurity::set_user_id_password | ( | const char * | user_id, |
const char * | password | ||
) |
Set User-ID and password as SecurityParams.
[in] | user_id | : User identification |
[in] | password | : User password |
cy_rslt_t ClientSecurity::set_tls_params | ( | const char * | client_name, |
const char * | private_key, | ||
const char * | certificate | ||
) |
Set TLS as SecurityParams.
[in] | client_name | : Name of the device/client to be used for TLS negotiation |
[in] | private_key | : Null-Terminated Private key string |
[in] | certificate | : Null-Terminated Device/Client Certificate |
cy_rslt_t ClientSecurity::set_tls_params | ( | const char * | client_name | ) |
Set TLS as SecurityParams.
[in] | client_name | : Name of the device/client to be used for TLS negotiation |
cy_rslt_t ClientSecurity::set_tls_root_certificate | ( | const char * | root_cert | ) |
Set TLS Root-Certificate to the object.
[in] | root_cert | : NULL-terminated root-certificate |
|
inline |
Return Security-type associated with the object.
|
inline |
Return user-id(user-id) associated with the object.
|
inline |
Return password associated with the object.
|
inline |
Return TLS Client-name.
|
inline |
Return Private Device-key in use.
|
inline |
Return Device certificate.
|
inline |
Return TLS root certificate.