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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user