mirror of https://github.com/OpenKMIP/PyKMIP.git
custom attributes for SymmetricKey
This commit is contained in:
parent
a7a5f37755
commit
8a2289c9bd
|
@ -20,6 +20,7 @@ from kmip.core import enums
|
|||
from kmip.core import primitives
|
||||
from kmip.core import objects as cobjects
|
||||
|
||||
from kmip.core.objects import Attribute
|
||||
from kmip.core.factories import attributes
|
||||
|
||||
from kmip.core.attributes import CryptographicParameters
|
||||
|
|
|
@ -657,7 +657,7 @@ class SymmetricKey(Key):
|
|||
'sqlite_autoincrement': True
|
||||
}
|
||||
|
||||
def __init__(self, algorithm, length, value, masks=None,
|
||||
def __init__(self, algorithm, length, value, app_specific_info=None, masks=None,
|
||||
name='Symmetric Key', key_wrapping_data=None):
|
||||
"""
|
||||
Create a SymmetricKey.
|
||||
|
@ -690,6 +690,9 @@ class SymmetricKey(Key):
|
|||
if masks:
|
||||
self.cryptographic_usage_masks.extend(masks)
|
||||
|
||||
if app_specific_info:
|
||||
self._application_specific_informations = app_specific_info
|
||||
|
||||
# All remaining attributes are not considered part of the public API
|
||||
# and are subject to change.
|
||||
|
||||
|
|
Loading…
Reference in New Issue