2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-20 18:23:24 +00:00

Updated to address comments from first attempt

This commit is contained in:
Wyllys Ingersoll
2014-09-09 00:14:02 -04:00
parent b04f5c2dc3
commit a2b71a1f1c
10 changed files with 258 additions and 32 deletions

View File

@@ -24,6 +24,7 @@ from kmip.core.attributes import CustomAttribute
from kmip.core.attributes import Name
from kmip.core.attributes import ObjectGroup
from kmip.core.attributes import UniqueIdentifier
from kmip.core.attributes import ObjectType
from kmip.core import utils
@@ -125,15 +126,15 @@ class AttributeValueFactory(object):
def _create_name(self, name):
if name is not None:
name_value = name.get('name_value')
name_type = name.get('name_type')
name_value = name.name_value
name_type = name.name_type
return Name.create(name_value, name_type)
else:
return Name()
def _create_object_type(self, obj):
raise NotImplementedError()
return ObjectType()
def _create_cryptographic_algorithm(self, alg):
return CryptographicAlgorithm(alg)