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

Add a ProxyKmipClient integation test for registering wrapped keys

This change adds a ProxyKmipClient integration test that verifies
that a wrapped key can be registered with the server and can then
be retrieved, along with all of its key wrapping metadata. Minor
updates to the underlying metadata handling are included.
This commit is contained in:
Peter Hamilton
2017-10-04 15:35:40 -04:00
parent b3d4ffb03f
commit 721e7f3717
3 changed files with 53 additions and 5 deletions

View File

@@ -534,21 +534,24 @@ class KmipEngine(object):
'cryptographic_algorithm': obj.cryptographic_algorithm,
'cryptographic_length': obj.cryptographic_length,
'key_format_type': obj.key_format_type,
'key_value': obj.value
'key_value': obj.value,
'key_wrapping_data': obj.key_wrapping_data
}
elif object_type == enums.ObjectType.PUBLIC_KEY:
value = {
'cryptographic_algorithm': obj.cryptographic_algorithm,
'cryptographic_length': obj.cryptographic_length,
'key_format_type': obj.key_format_type,
'key_value': obj.value
'key_value': obj.value,
'key_wrapping_data': obj.key_wrapping_data
}
elif object_type == enums.ObjectType.PRIVATE_KEY:
value = {
'cryptographic_algorithm': obj.cryptographic_algorithm,
'cryptographic_length': obj.cryptographic_length,
'key_format_type': obj.key_format_type,
'key_value': obj.value
'key_value': obj.value,
'key_wrapping_data': obj.key_wrapping_data
}
elif object_type == enums.ObjectType.SECRET_DATA:
value = {