mirror of
https://github.com/openkmip/pykmip
synced 2025-12-20 18:23:24 +00:00
create SecretData objects with custom attributes
This commit is contained in:
committed by
Peter Hamilton
parent
9403ff3d2a
commit
a9d15eb253
@@ -1580,7 +1580,7 @@ class SecretData(CryptographicObject):
|
||||
'sqlite_autoincrement': True
|
||||
}
|
||||
|
||||
def __init__(self, value, data_type, masks=None, name='Secret Data'):
|
||||
def __init__(self, value, data_type, app_specific_info=None, masks=None, name='Secret Data'):
|
||||
"""
|
||||
Create a SecretData object.
|
||||
|
||||
@@ -1599,6 +1599,9 @@ class SecretData(CryptographicObject):
|
||||
self.value = value
|
||||
self.data_type = data_type
|
||||
self.names = [name]
|
||||
|
||||
if app_specific_info:
|
||||
self._application_specific_informations = app_specific_info
|
||||
|
||||
if masks:
|
||||
self.cryptographic_usage_masks = masks
|
||||
|
||||
Reference in New Issue
Block a user