2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-17 16:53:48 +00:00

Adding support for the InitialDate attribute

This change updates the server and managed object set to support
the InitialDate attribute. The InitialDate is set when the Create,
CreateKeyPair, and Register operations are invoked and can be
listed and retrieved with the GetAttributeList and GetAttributes
operations respectively. The server unit tests have been updated
to reflect these changes.
This commit is contained in:
Peter Hamilton
2017-01-08 12:07:22 -05:00
parent 068c7f5d99
commit 1bd5366a62
3 changed files with 28 additions and 6 deletions

View File

@@ -57,6 +57,7 @@ class ManagedObject(sql.Base):
String(50),
default='default'
)
initial_date = Column(Integer, default=0)
_owner = Column('owner', String(50), default=None)
__mapper_args__ = {
@@ -78,6 +79,7 @@ class ManagedObject(sql.Base):
self.name_index = 0
self.names = list()
self.operation_policy_name = None
self.initial_date = 0
self._object_type = None
self._owner = None
@@ -90,7 +92,6 @@ class ManagedObject(sql.Base):
# The following attributes are placeholders for attributes that are
# unsupported by kmip.core
self._archive_date = None
self._initial_date = None
self._last_change_date = None
@property