Client SDK Version 1.8.0
Ionic Security client SDK for Python users
Public Member Functions | List of all members
ionicsdk.common.DeviceProfilePersistorBase Class Reference

Abstract class used to load and save device profiles. More...

Inheritance diagram for ionicsdk.common.DeviceProfilePersistorBase:
ionicsdk.common.DeviceProfilePersistorAesGcmFile ionicsdk.common.DeviceProfilePersistorDefault ionicsdk.common.DeviceProfilePersistorPasswordFile ionicsdk.common.DeviceProfilePersistorPlaintextFile ionicsdk.common.SecretShareProfilePersistor

Public Member Functions

def __init__ (self)
 Constructs a persistor with default values.
 
def getversion (self)
 Gets the profile persistor verion to use, or an empty value if a default will be used. More...
 
def setversion (self, version)
 Sets the profile persistor verion to use. More...
 

Detailed Description

Abstract class used to load and save device profiles.

This class provides the interface required for all device profile persistor implementations (e.g. DeviceProfilePersistorDefault, DeviceProfilePersistorAesGcm). A device profile persistor is responsible for loading and saving device profile objects (DeviceProfile).

The default implementation (DeviceProfilePersistorDefault) is typically sufficient for most desktop application environments. Another commonly used secure implementation is DeviceProfilePersistorAesGcmFile.

Member Function Documentation

◆ getversion()

def ionicsdk.common.DeviceProfilePersistorBase.getversion (   self)

Gets the profile persistor verion to use, or an empty value if a default will be used.

Returns
A string value for the version to use, or an empty string for a default value.

◆ setversion()

def ionicsdk.common.DeviceProfilePersistorBase.setversion (   self,
  version 
)

Sets the profile persistor verion to use.

An empty value will have a default be used.

Parameters
version(string) value to use to pick the version, or empty for a default version.
Returns
None, raises an exception on errors

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