6.1.1.3.2.28. linotp.lib.support module

methods to handle support files

linotp.lib.support.parseSupportLicense(licString)[source]

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, which the signature could be checked against
linotp.lib.support.getSupportLicenseInfo()[source]

get the current support and subscription information

Returns:dict with the license informstion
linotp.lib.support.setSupportLicense(licString)[source]

set the license to be the current one

Parameters:licString – the license with description and signature
Returns:tuple with status (boolean) and if faild, the reason
linotp.lib.support.isSupportLicenseValid(licString, raiseException=False)[source]

verify the support subscription with respect to signature validity, expriration 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