2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-19 09:43:47 +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:
Peter Hamilton
2015-01-09 13:11:05 -05:00
parent 5e401973e2
commit c6d6db3dfe
14 changed files with 949 additions and 101 deletions

View File

@@ -107,3 +107,16 @@ class BytearrayStream(io.RawIOBase):
def length(self):
return len(self.buffer)
def __str__(self):
sbuffer = bytes(self.buffer[0:])
return str(hexlify(sbuffer))
def __len__(self):
return len(self.buffer)
def __eq__(self, other):
if isinstance(other, BytearrayStream):
return (self.buffer == other.buffer)
else:
return NotImplemented