IoTivity C++ SDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OC::Credential Class Reference

This class is for credential's to be set to devices. More...

Public Member Functions

 Credential ()=default
 
 Credential (OicSecCredType_t type, size_t size)
 
OicSecCredType_t getCredentialType () const
 API to get credential type of device. More...
 
size_t getCredentialKeySize () const
 API to get size of credential key type. More...
 
void setCredentialType (OicSecCredType_t type)
 API to set credential type of device. More...
 
void setCredentialKeySize (size_t keySize)
 API to set size of credential key type. More...
 

Detailed Description

This class is for credential's to be set to devices.

The types supported are 0: no security mode 1: symmetric pair-wise key 2: symmetric group key 4: asymmetric key 8: signed asymmetric key (aka certificate) 16: PIN /password

Constructor & Destructor Documentation

OC::Credential::Credential ( )
default
OC::Credential::Credential ( OicSecCredType_t  type,
size_t  size 
)
inline

Member Function Documentation

size_t OC::Credential::getCredentialKeySize ( ) const
inline

API to get size of credential key type.

Returns
size of credential key type.
OicSecCredType_t OC::Credential::getCredentialType ( ) const
inline

API to get credential type of device.

Returns
credential type of device.
void OC::Credential::setCredentialKeySize ( size_t  keySize)
inline

API to set size of credential key type.

Parameters
keySizecredential key size.
Note
can be either 128 or 256 for symmetric pair-wise key
void OC::Credential::setCredentialType ( OicSecCredType_t  type)
inline

API to set credential type of device.

Device can have following credential types

  • symmetric pair-wise key
  • symmetric group key
  • asymmetric key
  • signed asymmetric key (aka certificate)
  • PIN /password
    Parameters
    typecredential type.

The documentation for this class was generated from the following file: