linotp.lib.support module¶
methods to handle support files
- linotp.lib.support.getSupportLicenseInfo()¶
get the current support and subscription information
- Parameters
validate – inform program to validate or not the license info
- Returns
tuple of dict with the license information and signature in case of an error, the dict and the signature are empty
- linotp.lib.support.isSupportLicenseValid(licString=None, lic_dict=None, lic_sign=None, raiseException=False)¶
verify the support subscription with respect to signature validity, expiration and volume
- Parameters
licString – the support license
raiseException – define if in case of an invalid license an exception should be raised
- Returns
tuple with validity and reason, if invalid
- linotp.lib.support.parseSupportLicense(licString: str)¶
parse the support subscription license
- Parameters
licString – the support license as multiline string
- Returns
tuple of license dict, extracted signature and the license as string, for which the signature should be checked
- linotp.lib.support.readLicenseInfo(filename)¶
parse the support subscription license
- Parameters
filename – the file which contains the license
- Returns
tuple of license dict, extracted signature and the license as string, which the signature could be checked against
- linotp.lib.support.removeSupportLicenseInfo()¶
- linotp.lib.support.setSupportLicense(licString)¶
set the license to be the current one
- Parameters
licString – the license with description and signature
- Returns
tuple with status (boolean) and if an error occurred, the reason