INNER CODE UNIT · Python

ObjDel

tpm2-software/tpm2-pkcs11 · tools/tpm2_pkcs11/commandlets_keys.py:535

class ObjDel(Command):
    '''
    Deletes an object from a token.
    '''

    @classmethod
    def delete(cls, path, tid):

        with Db(path) as db:
            obj = db.getobject(tid)
            db.rmobject(obj['id'])

    # adhere to an interface
    def generate_options(self, group_parser):
        group_parser.add_argument(
            'id', help='The id of the object to delete.\n')

    def __call__(self, args):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…