def __new__(cls, uuid, aik_path, vtpm, added=False):
"""
Args
----
uuid: str
The UUID for this VTPM Group
aik_path: str
The path to the .pem for this group's AIK
"""
if uuid in VTPMGroup._groups:
return VTPMGroup._groups[uuid]
obj = object.__new__(cls)
obj.uuid = uuid
obj.aik_path = aik_path
obj.vtpm = vtpm
if added:
VTPMGroup._groups[uuid] = obj
return obj
评论列表
文章目录