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

Rename the CertificateTypeEnum enum to CertificateType

This change renames the CertificateTypeEnum enumeration to
CertificateType, matching the naming schemes of all other
enumerations. This is a backwards incompatible change and
will break any scripts or programs that use the current
CertificateTypeEnum name.
This commit is contained in:
Peter Hamilton
2017-10-11 08:24:55 -04:00
parent 0a04424e6b
commit 179a84b268
13 changed files with 42 additions and 44 deletions

View File

@@ -22,7 +22,7 @@ from kmip.core.attributes import CryptographicAlgorithm
from kmip.core.attributes import CryptographicLength
from kmip.core.enums import AttributeType
from kmip.core.enums import CertificateTypeEnum
from kmip.core.enums import CertificateType
from kmip.core.enums import CryptographicAlgorithm as CryptoAlgorithmEnum
from kmip.core.enums import CryptographicUsageMask
from kmip.core.enums import ObjectType
@@ -302,7 +302,7 @@ def build_object(logger, object_type, key_format_type):
if object_type == ObjectType.CERTIFICATE:
value = build_secret_value(logger, object_type)
return Certificate(
certificate_type=CertificateTypeEnum.X_509,
certificate_type=CertificateType.X_509,
certificate_value=value)
else:
return build_key(logger, object_type, key_format_type)