mirror of
https://github.com/openkmip/pykmip
synced 2025-12-30 15:13:38 +00:00
Add support for the Sensitive attribute
This change adds support for the Sensitive attribute, adding it to the attribute factory, the SQLAlchemy object hierarchy, and to the server attribute handling methods. The intent is to use this new attribute to test the new SetAttribute and ModifyAttribute operations coming in future commits. Unit tests have been added and modified to support the new additions.
This commit is contained in:
committed by
Peter Hamilton
parent
4d2d2ba4f1
commit
e313731692
@@ -1078,6 +1078,30 @@ class AttributePolicy(object):
|
||||
),
|
||||
contents.ProtocolVersion(1, 0)
|
||||
),
|
||||
"Sensitive": AttributeRuleSet(
|
||||
True,
|
||||
("server", "client"),
|
||||
True,
|
||||
True,
|
||||
False,
|
||||
False,
|
||||
(
|
||||
enums.Operation.CREATE,
|
||||
enums.Operation.CREATE_KEY_PAIR,
|
||||
enums.Operation.REGISTER
|
||||
),
|
||||
(
|
||||
enums.ObjectType.CERTIFICATE,
|
||||
enums.ObjectType.SYMMETRIC_KEY,
|
||||
enums.ObjectType.PUBLIC_KEY,
|
||||
enums.ObjectType.PRIVATE_KEY,
|
||||
enums.ObjectType.SPLIT_KEY,
|
||||
enums.ObjectType.TEMPLATE,
|
||||
enums.ObjectType.SECRET_DATA,
|
||||
enums.ObjectType.OPAQUE_DATA
|
||||
),
|
||||
contents.ProtocolVersion(1, 4)
|
||||
)
|
||||
}
|
||||
|
||||
def is_attribute_supported(self, attribute):
|
||||
|
||||
Reference in New Issue
Block a user