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

AES/GCM protected device profile persistor implementation. More...

Inheritance diagram for ionicsdk.common.DeviceProfilePersistorAesGcmFile:
ionicsdk.common.DeviceProfilePersistorBase

Public Member Functions

def __init__ (self, filepath, keydata, authdata)
 Constructs a persistor with the provided values. More...
 
- Public Member Functions inherited from ionicsdk.common.DeviceProfilePersistorBase
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...
 

Public Attributes

 filepath
 (unicode) File name and path where the encrypted JSON file will be located
 

Detailed Description

AES/GCM protected device profile persistor implementation.

This class provides a file-based device persistor that is protected by an encryption key.

The Additional Authenticated Data (AAD) provided in authdata must not be empty.

Constructor & Destructor Documentation

◆ __init__()

def ionicsdk.common.DeviceProfilePersistorAesGcmFile.__init__ (   self,
  filepath,
  keydata,
  authdata 
)

Constructs a persistor with the provided values.

Parameters
filepath(string): The file name and path
keydata(bytes): The raw key bytes. It must be exactly 32 bytes in length.
authdata(bytes): The raw auth data. If None or empty, no AAD will be used.

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