mirror of
https://github.com/openkmip/pykmip
synced 2026-01-06 10:33:35 +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:
@@ -17,7 +17,6 @@ import six
|
||||
|
||||
from kmip.core import enums
|
||||
|
||||
from kmip.core.enums import CertificateTypeEnum
|
||||
from kmip.core.enums import HashingAlgorithm as HashingAlgorithmEnum
|
||||
from kmip.core.enums import KeyFormatType as KeyFormatTypeEnum
|
||||
from kmip.core.enums import Tags
|
||||
@@ -781,17 +780,17 @@ class CertificateType(Enumeration):
|
||||
information.
|
||||
"""
|
||||
|
||||
def __init__(self, value=CertificateTypeEnum.X_509):
|
||||
def __init__(self, value=enums.CertificateType.X_509):
|
||||
"""
|
||||
Construct a CertificateType object.
|
||||
|
||||
Args:
|
||||
value (CertificateTypeEnum): A CertificateTypeEnum enumeration
|
||||
value, (e.g., CertificateTypeEnum.PGP). Optional, defaults to
|
||||
CertificateTypeEnum.X_509.
|
||||
value (CertificateType): A CertificateType enumeration
|
||||
value, (e.g., CertificateType.PGP). Optional, defaults to
|
||||
CertificateType.X_509.
|
||||
"""
|
||||
super(CertificateType, self).__init__(
|
||||
enums.CertificateTypeEnum, value, Tags.CERTIFICATE_TYPE)
|
||||
enums.CertificateType, value, Tags.CERTIFICATE_TYPE)
|
||||
|
||||
|
||||
class DigestValue(ByteString):
|
||||
|
||||
@@ -137,7 +137,7 @@ class CertificateRequestType(enum.Enum):
|
||||
PGP = 0x00000004 # DEPRECATED
|
||||
|
||||
|
||||
class CertificateTypeEnum(enum.Enum):
|
||||
class CertificateType(enum.Enum):
|
||||
X_509 = 0x00000001
|
||||
PGP = 0x00000002 # Deprecated as of KMIP 1.4
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ class Certificate(Struct):
|
||||
Construct a Certificate object.
|
||||
|
||||
Args:
|
||||
certificate_type (CertificateTypeEnum): The type of the
|
||||
certificate_type (CertificateType): The type of the
|
||||
certificate. Optional, defaults to None.
|
||||
certificate_value (bytes): The bytes of the certificate. Optional,
|
||||
defaults to None.
|
||||
|
||||
Reference in New Issue
Block a user