2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-28 14:13:33 +00:00

Add Revoke operation support for pie client

This commit is contained in:
Hao Shen
2017-03-31 09:43:49 -07:00
parent e26e0748af
commit 74075d502c
5 changed files with 237 additions and 9 deletions

View File

@@ -110,6 +110,25 @@ class KmipClient:
"""
pass
@abc.abstractmethod
def revoke(self, revocation_reason, uid, revocation_message,
compromise_occurrence_date):
"""
Revoke a managed object stored by a KMIP appliance.
Args:
revocation_reason (RevocationReasonCode): An enumeration indicating
the revocation reason.
uid (string): The unique ID of the managed object to revoke.
Optional, defaults to None.
revocation_message (string): A message regarding the revocation.
Optional, defaults to None.
compromise_occurrence_date (int): A integer which will be converted
to the Datetime when the managed object was firstly believed to
be compromised. Optional, defaults to None.
"""
pass
@abc.abstractmethod
def destroy(self, uid):
"""