2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-26 05:03:37 +00:00

Adding support for the RekeyKeyPair operation

This change adds support for the ReKeyKeyPair operation, adding in
required KMIP objects and updating the KMIP client. Minor changes to the
server are included in preparation for future changes. The unit test
suite has been updated accordingly.
This commit is contained in:
Peter Hamilton
2015-01-21 11:41:08 -05:00
parent c6d6db3dfe
commit ff533ff4bb
15 changed files with 743 additions and 32 deletions

View File

@@ -175,6 +175,9 @@ class Integer(Base):
super(Integer, self).__init__(tag, type=Types.INTEGER)
self.value = value
if self.value is None:
self.value = 0
self.length = self.LENGTH
self.padding_length = self.LENGTH
@@ -223,6 +226,15 @@ class Integer(Base):
def __repr__(self):
return '<Integer, %d>' % (self.value)
def __eq__(self, other):
if isinstance(other, Integer):
return self.value == other.value
else:
return NotImplemented
def __ne__(self, other):
return not self.__eq__(other)
class LongInteger(Base):
LENGTH = 8