mirror of
https://github.com/openkmip/pykmip
synced 2025-12-20 10:13:18 +00:00
Adding support for the CreateKeyPair operation
This change adds support for the CreateKeyPair operation, adding in required KMIP attributes and objects and updating the KMIP client. Minor changes to the server are also made in preparation for future changes. The unit test suite has been updated accordingly.
This commit is contained in:
@@ -31,9 +31,22 @@ from enum import Enum
|
||||
# 3.1
|
||||
class UniqueIdentifier(TextString):
|
||||
|
||||
def __init__(self, value=None, tag=Tags.UNIQUE_IDENTIFIER):
|
||||
super(UniqueIdentifier, self).__init__(value, tag)
|
||||
|
||||
|
||||
class PrivateKeyUniqueIdentifier(UniqueIdentifier):
|
||||
|
||||
def __init__(self, value=None):
|
||||
super(self.__class__, self).__init__(value,
|
||||
Tags.UNIQUE_IDENTIFIER)
|
||||
super(PrivateKeyUniqueIdentifier, self).__init__(
|
||||
value, Tags.PRIVATE_KEY_UNIQUE_IDENTIFIER)
|
||||
|
||||
|
||||
class PublicKeyUniqueIdentifier(UniqueIdentifier):
|
||||
|
||||
def __init__(self, value=None):
|
||||
super(PublicKeyUniqueIdentifier, self).__init__(
|
||||
value, Tags.PUBLIC_KEY_UNIQUE_IDENTIFIER)
|
||||
|
||||
|
||||
# 3.2
|
||||
|
||||
Reference in New Issue
Block a user