2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-19 09:43:47 +00:00

Adding OperationPolicyName

This change adds the OperationPolicyName attribute, extending support to
the AttributeValueFactory. Test cases are included for the creation
process for both the factory and the individual attribute.
This commit is contained in:
Peter Hamilton
2014-12-02 10:43:58 -05:00
parent b99bf8cbf4
commit 3918c320fd
4 changed files with 64 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ 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.attributes import OperationPolicyName
from kmip.core import utils
@@ -185,7 +186,7 @@ class AttributeValueFactory(object):
raise NotImplementedError()
def _create_operation_policy_name(self, name):
raise NotImplementedError()
return OperationPolicyName(name)
def _create_cryptographic_usage_mask(self, flags):
mask = None