partition stringclasses 3
values | func_name stringlengths 1 134 | docstring stringlengths 1 46.9k | path stringlengths 4 223 | original_string stringlengths 75 104k | code stringlengths 75 104k | docstring_tokens listlengths 1 1.97k | repo stringlengths 7 55 | language stringclasses 1
value | url stringlengths 87 315 | code_tokens listlengths 19 28.4k | sha stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|
test | get_certificate_from_connection | Extract an X.509 certificate from a socket connection. | kmip/services/server/auth/utils.py | def get_certificate_from_connection(connection):
"""
Extract an X.509 certificate from a socket connection.
"""
certificate = connection.getpeercert(binary_form=True)
if certificate:
return x509.load_der_x509_certificate(
certificate,
backends.default_backend()
... | def get_certificate_from_connection(connection):
"""
Extract an X.509 certificate from a socket connection.
"""
certificate = connection.getpeercert(binary_form=True)
if certificate:
return x509.load_der_x509_certificate(
certificate,
backends.default_backend()
... | [
"Extract",
"an",
"X",
".",
"509",
"certificate",
"from",
"a",
"socket",
"connection",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/auth/utils.py#L22-L32 | [
"def",
"get_certificate_from_connection",
"(",
"connection",
")",
":",
"certificate",
"=",
"connection",
".",
"getpeercert",
"(",
"binary_form",
"=",
"True",
")",
"if",
"certificate",
":",
"return",
"x509",
".",
"load_der_x509_certificate",
"(",
"certificate",
",",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | get_extended_key_usage_from_certificate | Given an X.509 certificate, extract and return the extendedKeyUsage
extension. | kmip/services/server/auth/utils.py | def get_extended_key_usage_from_certificate(certificate):
"""
Given an X.509 certificate, extract and return the extendedKeyUsage
extension.
"""
try:
return certificate.extensions.get_extension_for_oid(
x509.oid.ExtensionOID.EXTENDED_KEY_USAGE
).value
except x509.Exte... | def get_extended_key_usage_from_certificate(certificate):
"""
Given an X.509 certificate, extract and return the extendedKeyUsage
extension.
"""
try:
return certificate.extensions.get_extension_for_oid(
x509.oid.ExtensionOID.EXTENDED_KEY_USAGE
).value
except x509.Exte... | [
"Given",
"an",
"X",
".",
"509",
"certificate",
"extract",
"and",
"return",
"the",
"extendedKeyUsage",
"extension",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/auth/utils.py#L35-L45 | [
"def",
"get_extended_key_usage_from_certificate",
"(",
"certificate",
")",
":",
"try",
":",
"return",
"certificate",
".",
"extensions",
".",
"get_extension_for_oid",
"(",
"x509",
".",
"oid",
".",
"ExtensionOID",
".",
"EXTENDED_KEY_USAGE",
")",
".",
"value",
"except"... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | get_common_names_from_certificate | Given an X.509 certificate, extract and return all common names. | kmip/services/server/auth/utils.py | def get_common_names_from_certificate(certificate):
"""
Given an X.509 certificate, extract and return all common names.
"""
common_names = certificate.subject.get_attributes_for_oid(
x509.oid.NameOID.COMMON_NAME
)
return [common_name.value for common_name in common_names] | def get_common_names_from_certificate(certificate):
"""
Given an X.509 certificate, extract and return all common names.
"""
common_names = certificate.subject.get_attributes_for_oid(
x509.oid.NameOID.COMMON_NAME
)
return [common_name.value for common_name in common_names] | [
"Given",
"an",
"X",
".",
"509",
"certificate",
"extract",
"and",
"return",
"all",
"common",
"names",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/auth/utils.py#L48-L56 | [
"def",
"get_common_names_from_certificate",
"(",
"certificate",
")",
":",
"common_names",
"=",
"certificate",
".",
"subject",
".",
"get_attributes_for_oid",
"(",
"x509",
".",
"oid",
".",
"NameOID",
".",
"COMMON_NAME",
")",
"return",
"[",
"common_name",
".",
"value... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | get_client_identity_from_certificate | Given an X.509 certificate, extract and return the client identity. | kmip/services/server/auth/utils.py | def get_client_identity_from_certificate(certificate):
"""
Given an X.509 certificate, extract and return the client identity.
"""
client_ids = get_common_names_from_certificate(certificate)
if len(client_ids) > 0:
if len(client_ids) > 1:
raise exceptions.PermissionDenied(
... | def get_client_identity_from_certificate(certificate):
"""
Given an X.509 certificate, extract and return the client identity.
"""
client_ids = get_common_names_from_certificate(certificate)
if len(client_ids) > 0:
if len(client_ids) > 1:
raise exceptions.PermissionDenied(
... | [
"Given",
"an",
"X",
".",
"509",
"certificate",
"extract",
"and",
"return",
"the",
"client",
"identity",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/auth/utils.py#L59-L75 | [
"def",
"get_client_identity_from_certificate",
"(",
"certificate",
")",
":",
"client_ids",
"=",
"get_common_names_from_certificate",
"(",
"certificate",
")",
"if",
"len",
"(",
"client_ids",
")",
">",
"0",
":",
"if",
"len",
"(",
"client_ids",
")",
">",
"1",
":",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CreateRequestPayload.read | Read the data encoding the Create request payload and decode it into
its constituent parts.
Args:
input_buffer (stream): A data buffer containing encoded object
data, supporting a read method.
kmip_version (KMIPVersion): An enumeration defining the KMIP
... | kmip/core/messages/payloads/create.py | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Create request payload and decode it into
its constituent parts.
Args:
input_buffer (stream): A data buffer containing encoded object
data, supporting a read... | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Create request payload and decode it into
its constituent parts.
Args:
input_buffer (stream): A data buffer containing encoded object
data, supporting a read... | [
"Read",
"the",
"data",
"encoding",
"the",
"Create",
"request",
"payload",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/create.py#L95-L161 | [
"def",
"read",
"(",
"self",
",",
"input_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"CreateRequestPayload",
",",
"self",
")",
".",
"read",
"(",
"input_buffer",
",",
"kmip_version",
"=",
"kmip_versi... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CreateRequestPayload.write | Write the data encoding the Create request payload to a buffer.
Args:
output_buffer (stream): A data buffer in which to encode object
data, supporting a write method.
kmip_version (KMIPVersion): An enumeration defining the KMIP
version with which the obje... | kmip/core/messages/payloads/create.py | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Create request payload to a buffer.
Args:
output_buffer (stream): A data buffer in which to encode object
data, supporting a write method.
kmip_versio... | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Create request payload to a buffer.
Args:
output_buffer (stream): A data buffer in which to encode object
data, supporting a write method.
kmip_versio... | [
"Write",
"the",
"data",
"encoding",
"the",
"Create",
"request",
"payload",
"to",
"a",
"buffer",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/create.py#L163-L221 | [
"def",
"write",
"(",
"self",
",",
"output_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_buffer",
"=",
"utils",
".",
"BytearrayStream",
"(",
")",
"if",
"self",
".",
"_object_type",
":",
"self",
".",
"_obje... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CreateResponsePayload.read | Read the data encoding the Create response payload and decode it into
its constituent parts.
Args:
input_buffer (stream): A data buffer containing encoded object
data, supporting a read method.
kmip_version (KMIPVersion): An enumeration defining the KMIP
... | kmip/core/messages/payloads/create.py | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Create response payload and decode it into
its constituent parts.
Args:
input_buffer (stream): A data buffer containing encoded object
data, supporting a rea... | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Create response payload and decode it into
its constituent parts.
Args:
input_buffer (stream): A data buffer containing encoded object
data, supporting a rea... | [
"Read",
"the",
"data",
"encoding",
"the",
"Create",
"response",
"payload",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/create.py#L353-L409 | [
"def",
"read",
"(",
"self",
",",
"input_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"CreateResponsePayload",
",",
"self",
")",
".",
"read",
"(",
"input_buffer",
",",
"kmip_version",
"=",
"kmip_vers... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CreateResponsePayload.write | Write the data encoding the Create response payload to a buffer.
Args:
output_buffer (stream): A data buffer in which to encode object
data, supporting a write method.
kmip_version (KMIPVersion): An enumeration defining the KMIP
version with which the obj... | kmip/core/messages/payloads/create.py | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Create response payload to a buffer.
Args:
output_buffer (stream): A data buffer in which to encode object
data, supporting a write method.
kmip_versi... | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Create response payload to a buffer.
Args:
output_buffer (stream): A data buffer in which to encode object
data, supporting a write method.
kmip_versi... | [
"Write",
"the",
"data",
"encoding",
"the",
"Create",
"response",
"payload",
"to",
"a",
"buffer",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/create.py#L411-L458 | [
"def",
"write",
"(",
"self",
",",
"output_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_buffer",
"=",
"utils",
".",
"BytearrayStream",
"(",
")",
"if",
"self",
".",
"_object_type",
":",
"self",
".",
"_obje... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | ObjectFactory.convert | Convert a Pie object into a core secret object and vice versa.
Args:
obj (various): A Pie or core secret object to convert into the
opposite object space. Required.
Raises:
TypeError: if the object type is unrecognized or unsupported. | kmip/pie/factory.py | def convert(self, obj):
"""
Convert a Pie object into a core secret object and vice versa.
Args:
obj (various): A Pie or core secret object to convert into the
opposite object space. Required.
Raises:
TypeError: if the object type is unrecognized... | def convert(self, obj):
"""
Convert a Pie object into a core secret object and vice versa.
Args:
obj (various): A Pie or core secret object to convert into the
opposite object space. Required.
Raises:
TypeError: if the object type is unrecognized... | [
"Convert",
"a",
"Pie",
"object",
"into",
"a",
"core",
"secret",
"object",
"and",
"vice",
"versa",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/pie/factory.py#L36-L72 | [
"def",
"convert",
"(",
"self",
",",
"obj",
")",
":",
"if",
"isinstance",
"(",
"obj",
",",
"pobjects",
".",
"SymmetricKey",
")",
":",
"return",
"self",
".",
"_build_core_key",
"(",
"obj",
",",
"secrets",
".",
"SymmetricKey",
")",
"elif",
"isinstance",
"("... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | EncryptResponsePayload.read | Read the data encoding the Encrypt response payload and decode it
into its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_version (KMIP... | kmip/core/messages/payloads/encrypt.py | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Encrypt response payload and decode it
into its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a re... | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Encrypt response payload and decode it
into its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a re... | [
"Read",
"the",
"data",
"encoding",
"the",
"Encrypt",
"response",
"payload",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/encrypt.py#L394-L448 | [
"def",
"read",
"(",
"self",
",",
"input_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"EncryptResponsePayload",
",",
"self",
")",
".",
"read",
"(",
"input_stream",
",",
"kmip_version",
"=",
"kmip_ver... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | DeriveKeyRequestPayload.read | Read the data encoding the DeriveKey request payload and decode it
into its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_version (KMI... | kmip/core/messages/payloads/derive_key.py | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the DeriveKey request payload and decode it
into its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting a r... | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the DeriveKey request payload and decode it
into its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting a r... | [
"Read",
"the",
"data",
"encoding",
"the",
"DeriveKey",
"request",
"payload",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/derive_key.py#L198-L301 | [
"def",
"read",
"(",
"self",
",",
"input_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"DeriveKeyRequestPayload",
",",
"self",
")",
".",
"read",
"(",
"input_buffer",
",",
"kmip_version",
"=",
"kmip_ve... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | DeriveKeyRequestPayload.write | Write the data encoding the DeriveKey request payload to a stream.
Args:
output_buffer (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
object.
kmip_version (KMIPVersion): An enumeration defining... | kmip/core/messages/payloads/derive_key.py | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the DeriveKey request payload to a stream.
Args:
output_buffer (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayS... | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the DeriveKey request payload to a stream.
Args:
output_buffer (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayS... | [
"Write",
"the",
"data",
"encoding",
"the",
"DeriveKey",
"request",
"payload",
"to",
"a",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/derive_key.py#L303-L390 | [
"def",
"write",
"(",
"self",
",",
"output_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_buffer",
"=",
"utils",
".",
"BytearrayStream",
"(",
")",
"if",
"self",
".",
"_object_type",
":",
"self",
".",
"_obje... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | AttributePolicy.is_attribute_supported | Check if the attribute is supported by the current KMIP version.
Args:
attribute (string): The name of the attribute
(e.g., 'Cryptographic Algorithm'). Required.
Returns:
bool: True if the attribute is supported by the current KMIP
version. False ... | kmip/services/server/policy.py | def is_attribute_supported(self, attribute):
"""
Check if the attribute is supported by the current KMIP version.
Args:
attribute (string): The name of the attribute
(e.g., 'Cryptographic Algorithm'). Required.
Returns:
bool: True if the attribute... | def is_attribute_supported(self, attribute):
"""
Check if the attribute is supported by the current KMIP version.
Args:
attribute (string): The name of the attribute
(e.g., 'Cryptographic Algorithm'). Required.
Returns:
bool: True if the attribute... | [
"Check",
"if",
"the",
"attribute",
"is",
"supported",
"by",
"the",
"current",
"KMIP",
"version",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/policy.py#L1081-L1099 | [
"def",
"is_attribute_supported",
"(",
"self",
",",
"attribute",
")",
":",
"if",
"attribute",
"not",
"in",
"self",
".",
"_attribute_rule_sets",
".",
"keys",
"(",
")",
":",
"return",
"False",
"rule_set",
"=",
"self",
".",
"_attribute_rule_sets",
".",
"get",
"(... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | AttributePolicy.is_attribute_deprecated | Check if the attribute is deprecated by the current KMIP version.
Args:
attribute (string): The name of the attribute
(e.g., 'Unique Identifier'). Required. | kmip/services/server/policy.py | def is_attribute_deprecated(self, attribute):
"""
Check if the attribute is deprecated by the current KMIP version.
Args:
attribute (string): The name of the attribute
(e.g., 'Unique Identifier'). Required.
"""
rule_set = self._attribute_rule_sets.get... | def is_attribute_deprecated(self, attribute):
"""
Check if the attribute is deprecated by the current KMIP version.
Args:
attribute (string): The name of the attribute
(e.g., 'Unique Identifier'). Required.
"""
rule_set = self._attribute_rule_sets.get... | [
"Check",
"if",
"the",
"attribute",
"is",
"deprecated",
"by",
"the",
"current",
"KMIP",
"version",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/policy.py#L1101-L1116 | [
"def",
"is_attribute_deprecated",
"(",
"self",
",",
"attribute",
")",
":",
"rule_set",
"=",
"self",
".",
"_attribute_rule_sets",
".",
"get",
"(",
"attribute",
")",
"if",
"rule_set",
".",
"version_deprecated",
":",
"if",
"self",
".",
"_version",
">=",
"rule_set... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | AttributePolicy.is_attribute_applicable_to_object_type | Check if the attribute is supported by the given object type.
Args:
attribute (string): The name of the attribute (e.g., 'Name').
Required.
object_type (ObjectType): An ObjectType enumeration
(e.g., ObjectType.SYMMETRIC_KEY). Required.
Returns:
... | kmip/services/server/policy.py | def is_attribute_applicable_to_object_type(self, attribute, object_type):
"""
Check if the attribute is supported by the given object type.
Args:
attribute (string): The name of the attribute (e.g., 'Name').
Required.
object_type (ObjectType): An ObjectTy... | def is_attribute_applicable_to_object_type(self, attribute, object_type):
"""
Check if the attribute is supported by the given object type.
Args:
attribute (string): The name of the attribute (e.g., 'Name').
Required.
object_type (ObjectType): An ObjectTy... | [
"Check",
"if",
"the",
"attribute",
"is",
"supported",
"by",
"the",
"given",
"object",
"type",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/policy.py#L1118-L1136 | [
"def",
"is_attribute_applicable_to_object_type",
"(",
"self",
",",
"attribute",
",",
"object_type",
")",
":",
"# TODO (peterhamilton) Handle applicability between certificate types",
"rule_set",
"=",
"self",
".",
"_attribute_rule_sets",
".",
"get",
"(",
"attribute",
")",
"i... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | AttributePolicy.is_attribute_multivalued | Check if the attribute is allowed to have multiple instances.
Args:
attribute (string): The name of the attribute
(e.g., 'State'). Required. | kmip/services/server/policy.py | def is_attribute_multivalued(self, attribute):
"""
Check if the attribute is allowed to have multiple instances.
Args:
attribute (string): The name of the attribute
(e.g., 'State'). Required.
"""
# TODO (peterhamilton) Handle multivalue swap between c... | def is_attribute_multivalued(self, attribute):
"""
Check if the attribute is allowed to have multiple instances.
Args:
attribute (string): The name of the attribute
(e.g., 'State'). Required.
"""
# TODO (peterhamilton) Handle multivalue swap between c... | [
"Check",
"if",
"the",
"attribute",
"is",
"allowed",
"to",
"have",
"multiple",
"instances",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/policy.py#L1138-L1148 | [
"def",
"is_attribute_multivalued",
"(",
"self",
",",
"attribute",
")",
":",
"# TODO (peterhamilton) Handle multivalue swap between certificate types",
"rule_set",
"=",
"self",
".",
"_attribute_rule_sets",
".",
"get",
"(",
"attribute",
")",
"return",
"rule_set",
".",
"mult... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | ConfigHelper.get_valid_value | Returns a value that can be used as a parameter in client or
server. If a direct_value is given, that value will be returned
instead of the value from the config file. If the appropriate config
file option is not found, the default_value is returned.
:param direct_value: represents a di... | kmip/core/config_helper.py | def get_valid_value(self, direct_value, config_section,
config_option_name, default_value):
"""Returns a value that can be used as a parameter in client or
server. If a direct_value is given, that value will be returned
instead of the value from the config file. If the ap... | def get_valid_value(self, direct_value, config_section,
config_option_name, default_value):
"""Returns a value that can be used as a parameter in client or
server. If a direct_value is given, that value will be returned
instead of the value from the config file. If the ap... | [
"Returns",
"a",
"value",
"that",
"can",
"be",
"used",
"as",
"a",
"parameter",
"in",
"client",
"or",
"server",
".",
"If",
"a",
"direct_value",
"is",
"given",
"that",
"value",
"will",
"be",
"returned",
"instead",
"of",
"the",
"value",
"from",
"the",
"confi... | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/config_helper.py#L67-L103 | [
"def",
"get_valid_value",
"(",
"self",
",",
"direct_value",
",",
"config_section",
",",
"config_option_name",
",",
"default_value",
")",
":",
"ARG_MSG",
"=",
"\"Using given value '{0}' for {1}\"",
"CONF_MSG",
"=",
"\"Using value '{0}' from configuration file {1} for {2}\"",
"... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CheckResponsePayload.read | Read the data encoding the Check response payload and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_version (KMIPVe... | kmip/core/messages/payloads/check.py | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Check response payload and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read... | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Check response payload and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read... | [
"Read",
"the",
"data",
"encoding",
"the",
"Check",
"response",
"payload",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/check.py#L411-L467 | [
"def",
"read",
"(",
"self",
",",
"input_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"CheckResponsePayload",
",",
"self",
")",
".",
"read",
"(",
"input_stream",
",",
"kmip_version",
"=",
"kmip_versi... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CheckResponsePayload.write | Write the data encoding the Check response payload to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
object.
kmip_version (KMIPVersion): An enumeration defining th... | kmip/core/messages/payloads/check.py | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Check response payload to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStre... | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Check response payload to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStre... | [
"Write",
"the",
"data",
"encoding",
"the",
"Check",
"response",
"payload",
"to",
"a",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/check.py#L469-L512 | [
"def",
"write",
"(",
"self",
",",
"output_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_stream",
"=",
"utils",
".",
"BytearrayStream",
"(",
")",
"if",
"self",
".",
"_unique_identifier",
":",
"self",
".",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | AttributeReference.read | Read the data stream and decode the AttributeReference structure into
its parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting a read method.
kmip_version (enum): A KMIPVersion enumeration defining the KMIP
... | kmip/core/objects.py | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_2_0):
"""
Read the data stream and decode the AttributeReference structure into
its parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting a read method.
... | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_2_0):
"""
Read the data stream and decode the AttributeReference structure into
its parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting a read method.
... | [
"Read",
"the",
"data",
"stream",
"and",
"decode",
"the",
"AttributeReference",
"structure",
"into",
"its",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L250-L310 | [
"def",
"read",
"(",
"self",
",",
"input_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_2_0",
")",
":",
"if",
"kmip_version",
"<",
"enums",
".",
"KMIPVersion",
".",
"KMIP_2_0",
":",
"raise",
"exceptions",
".",
"VersionNotSupported",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | AttributeReference.write | Write the AttributeReference structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
Attributes structure data, supporting a write method.
kmip_version (enum): A KMIPVersion enumeration defining the KMIP
versi... | kmip/core/objects.py | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_2_0):
"""
Write the AttributeReference structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
Attributes structure data, supporting a write method.
... | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_2_0):
"""
Write the AttributeReference structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
Attributes structure data, supporting a write method.
... | [
"Write",
"the",
"AttributeReference",
"structure",
"encoding",
"to",
"the",
"data",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L312-L365 | [
"def",
"write",
"(",
"self",
",",
"output_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_2_0",
")",
":",
"if",
"kmip_version",
"<",
"enums",
".",
"KMIPVersion",
".",
"KMIP_2_0",
":",
"raise",
"exceptions",
".",
"VersionNotSupported"... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | Attributes.read | Read the data stream and decode the Attributes structure into its
parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method.
kmip_version (enum): A KMIPVersion enumeration defining the KMIP
version ... | kmip/core/objects.py | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_2_0):
"""
Read the data stream and decode the Attributes structure into its
parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method.
... | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_2_0):
"""
Read the data stream and decode the Attributes structure into its
parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method.
... | [
"Read",
"the",
"data",
"stream",
"and",
"decode",
"the",
"Attributes",
"structure",
"into",
"its",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L477-L524 | [
"def",
"read",
"(",
"self",
",",
"input_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_2_0",
")",
":",
"if",
"kmip_version",
"<",
"enums",
".",
"KMIPVersion",
".",
"KMIP_2_0",
":",
"raise",
"exceptions",
".",
"VersionNotSupported",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | Attributes.write | Write the Attributes structure encoding to the data stream.
Args:
output_stream (stream): A data stream in which to encode
Attributes structure data, supporting a write method.
kmip_version (enum): A KMIPVersion enumeration defining the KMIP
version with ... | kmip/core/objects.py | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_2_0):
"""
Write the Attributes structure encoding to the data stream.
Args:
output_stream (stream): A data stream in which to encode
Attributes structure data, supporting a write method.
k... | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_2_0):
"""
Write the Attributes structure encoding to the data stream.
Args:
output_stream (stream): A data stream in which to encode
Attributes structure data, supporting a write method.
k... | [
"Write",
"the",
"Attributes",
"structure",
"encoding",
"to",
"the",
"data",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L526-L565 | [
"def",
"write",
"(",
"self",
",",
"output_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_2_0",
")",
":",
"if",
"kmip_version",
"<",
"enums",
".",
"KMIPVersion",
".",
"KMIP_2_0",
":",
"raise",
"exceptions",
".",
"VersionNotSupported"... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | Nonce.read | Read the data encoding the Nonce struct and decode it into its
constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_version (KMIPVersion): An... | kmip/core/objects.py | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Nonce struct and decode it into its
constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; u... | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Nonce struct and decode it into its
constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; u... | [
"Read",
"the",
"data",
"encoding",
"the",
"Nonce",
"struct",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L671-L711 | [
"def",
"read",
"(",
"self",
",",
"input_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"Nonce",
",",
"self",
")",
".",
"read",
"(",
"input_stream",
",",
"kmip_version",
"=",
"kmip_version",
")",
"... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | Nonce.write | Write the data encoding the Nonce struct to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
object.
kmip_version (KMIPVersion): An enumeration defining the KMIP
... | kmip/core/objects.py | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Nonce struct to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
... | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Nonce struct to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
... | [
"Write",
"the",
"data",
"encoding",
"the",
"Nonce",
"struct",
"to",
"a",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L713-L742 | [
"def",
"write",
"(",
"self",
",",
"output_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_stream",
"=",
"BytearrayStream",
"(",
")",
"if",
"self",
".",
"_nonce_id",
":",
"self",
".",
"_nonce_id",
".",
"writ... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | UsernamePasswordCredential.read | Read the data encoding the UsernamePasswordCredential struct and
decode it into its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_vers... | kmip/core/objects.py | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the UsernamePasswordCredential struct and
decode it into its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, suppor... | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the UsernamePasswordCredential struct and
decode it into its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, suppor... | [
"Read",
"the",
"data",
"encoding",
"the",
"UsernamePasswordCredential",
"struct",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L851-L889 | [
"def",
"read",
"(",
"self",
",",
"input_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"UsernamePasswordCredential",
",",
"self",
")",
".",
"read",
"(",
"input_stream",
",",
"kmip_version",
"=",
"kmip... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | UsernamePasswordCredential.write | Write the data encoding the UsernamePasswordCredential struct to a
stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
object.
kmip_version (KMIPVersion): An enum... | kmip/core/objects.py | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the UsernamePasswordCredential struct to a
stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usua... | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the UsernamePasswordCredential struct to a
stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usua... | [
"Write",
"the",
"data",
"encoding",
"the",
"UsernamePasswordCredential",
"struct",
"to",
"a",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L891-L924 | [
"def",
"write",
"(",
"self",
",",
"output_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_stream",
"=",
"BytearrayStream",
"(",
")",
"if",
"self",
".",
"_username",
":",
"self",
".",
"_username",
".",
"writ... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | DeviceCredential.read | Read the data encoding the DeviceCredential struct and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_version (KMIPV... | kmip/core/objects.py | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the DeviceCredential struct and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a rea... | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the DeviceCredential struct and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a rea... | [
"Read",
"the",
"data",
"encoding",
"the",
"DeviceCredential",
"struct",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L1124-L1194 | [
"def",
"read",
"(",
"self",
",",
"input_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"DeviceCredential",
",",
"self",
")",
".",
"read",
"(",
"input_stream",
",",
"kmip_version",
"=",
"kmip_version",... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | DeviceCredential.write | Write the data encoding the DeviceCredential struct to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
object.
kmip_version (KMIPVersion): An enumeration defining t... | kmip/core/objects.py | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the DeviceCredential struct to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStr... | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the DeviceCredential struct to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStr... | [
"Write",
"the",
"data",
"encoding",
"the",
"DeviceCredential",
"struct",
"to",
"a",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L1196-L1245 | [
"def",
"write",
"(",
"self",
",",
"output_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_stream",
"=",
"BytearrayStream",
"(",
")",
"if",
"self",
".",
"_device_serial_number",
"is",
"not",
"None",
":",
"self... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | Credential.read | Read the data encoding the Credential struct and decode it into its
constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_version (KMIPVersion... | kmip/core/objects.py | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Credential struct and decode it into its
constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read meth... | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Credential struct and decode it into its
constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read meth... | [
"Read",
"the",
"data",
"encoding",
"the",
"Credential",
"struct",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L1658-L1711 | [
"def",
"read",
"(",
"self",
",",
"input_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"Credential",
",",
"self",
")",
".",
"read",
"(",
"input_stream",
",",
"kmip_version",
"=",
"kmip_version",
")"... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | Credential.write | Write the data encoding the Credential struct to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
object.
kmip_version (KMIPVersion): An enumeration defining the KMI... | kmip/core/objects.py | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Credential struct to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
... | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Credential struct to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
... | [
"Write",
"the",
"data",
"encoding",
"the",
"Credential",
"struct",
"to",
"a",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L1713-L1756 | [
"def",
"write",
"(",
"self",
",",
"output_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_stream",
"=",
"BytearrayStream",
"(",
")",
"if",
"self",
".",
"_credential_type",
":",
"self",
".",
"_credential_type",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | MACSignatureKeyInformation.read | Read the data encoding the MACSignatureKeyInformation struct and
decode it into its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_vers... | kmip/core/objects.py | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the MACSignatureKeyInformation struct and
decode it into its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, suppor... | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the MACSignatureKeyInformation struct and
decode it into its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, suppor... | [
"Read",
"the",
"data",
"encoding",
"the",
"MACSignatureKeyInformation",
"struct",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L2269-L2311 | [
"def",
"read",
"(",
"self",
",",
"input_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"MACSignatureKeyInformation",
",",
"self",
")",
".",
"read",
"(",
"input_stream",
",",
"kmip_version",
"=",
"kmip... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | MACSignatureKeyInformation.write | Write the data encoding the MACSignatureKeyInformation struct to a
stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
object.
kmip_version (KMIPVersion): An enum... | kmip/core/objects.py | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the MACSignatureKeyInformation struct to a
stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usua... | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the MACSignatureKeyInformation struct to a
stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usua... | [
"Write",
"the",
"data",
"encoding",
"the",
"MACSignatureKeyInformation",
"struct",
"to",
"a",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L2313-L2349 | [
"def",
"write",
"(",
"self",
",",
"output_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_stream",
"=",
"BytearrayStream",
"(",
")",
"if",
"self",
".",
"_unique_identifier",
":",
"self",
".",
"_unique_identifie... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | KeyWrappingData.read | Read the data encoding the KeyWrappingData struct and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_version (KMIPVe... | kmip/core/objects.py | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the KeyWrappingData struct and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read... | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the KeyWrappingData struct and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read... | [
"Read",
"the",
"data",
"encoding",
"the",
"KeyWrappingData",
"struct",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L2555-L2635 | [
"def",
"read",
"(",
"self",
",",
"input_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"KeyWrappingData",
",",
"self",
")",
".",
"read",
"(",
"input_stream",
",",
"kmip_version",
"=",
"kmip_version",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | KeyWrappingData.write | Write the data encoding the KeyWrappingData struct to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
object.
kmip_version (KMIPVersion): An enumeration defining th... | kmip/core/objects.py | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the KeyWrappingData struct to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStre... | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the KeyWrappingData struct to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStre... | [
"Write",
"the",
"data",
"encoding",
"the",
"KeyWrappingData",
"struct",
"to",
"a",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L2637-L2692 | [
"def",
"write",
"(",
"self",
",",
"output_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_stream",
"=",
"BytearrayStream",
"(",
")",
"if",
"self",
".",
"_wrapping_method",
":",
"self",
".",
"_wrapping_method",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | KeyWrappingSpecification.read | Read the data encoding the KeyWrappingSpecification struct and decode
it into its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_versio... | kmip/core/objects.py | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the KeyWrappingSpecification struct and decode
it into its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporti... | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the KeyWrappingSpecification struct and decode
it into its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporti... | [
"Read",
"the",
"data",
"encoding",
"the",
"KeyWrappingSpecification",
"struct",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L2903-L2974 | [
"def",
"read",
"(",
"self",
",",
"input_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"KeyWrappingSpecification",
",",
"self",
")",
".",
"read",
"(",
"input_stream",
",",
"kmip_version",
"=",
"kmip_v... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | KeyWrappingSpecification.write | Write the data encoding the KeyWrappingSpecification struct to a
stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
object.
kmip_version (KMIPVersion): An enumer... | kmip/core/objects.py | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the KeyWrappingSpecification struct to a
stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usuall... | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the KeyWrappingSpecification struct to a
stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usuall... | [
"Write",
"the",
"data",
"encoding",
"the",
"KeyWrappingSpecification",
"struct",
"to",
"a",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L2976-L3028 | [
"def",
"write",
"(",
"self",
",",
"output_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_stream",
"=",
"BytearrayStream",
"(",
")",
"if",
"self",
".",
"_wrapping_method",
":",
"self",
".",
"_wrapping_method",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | ExtensionInformation.read | Read the data encoding the ExtensionInformation object and decode it
into its constituent parts.
Args:
istream (Stream): A data stream containing encoded object data,
supporting a read method; usually a BytearrayStream object.
kmip_version (KMIPVersion): An enume... | kmip/core/objects.py | def read(self, istream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the ExtensionInformation object and decode it
into its constituent parts.
Args:
istream (Stream): A data stream containing encoded object data,
supporting a read meth... | def read(self, istream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the ExtensionInformation object and decode it
into its constituent parts.
Args:
istream (Stream): A data stream containing encoded object data,
supporting a read meth... | [
"Read",
"the",
"data",
"encoding",
"the",
"ExtensionInformation",
"object",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L3365-L3393 | [
"def",
"read",
"(",
"self",
",",
"istream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"ExtensionInformation",
",",
"self",
")",
".",
"read",
"(",
"istream",
",",
"kmip_version",
"=",
"kmip_version",
")"... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | ExtensionInformation.write | Write the data encoding the ExtensionInformation object to a stream.
Args:
ostream (Stream): A data stream in which to encode object data,
supporting a write method; usually a BytearrayStream object.
kmip_version (KMIPVersion): An enumeration defining the KMIP
... | kmip/core/objects.py | def write(self, ostream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the ExtensionInformation object to a stream.
Args:
ostream (Stream): A data stream in which to encode object data,
supporting a write method; usually a BytearrayStream obje... | def write(self, ostream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the ExtensionInformation object to a stream.
Args:
ostream (Stream): A data stream in which to encode object data,
supporting a write method; usually a BytearrayStream obje... | [
"Write",
"the",
"data",
"encoding",
"the",
"ExtensionInformation",
"object",
"to",
"a",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L3395-L3420 | [
"def",
"write",
"(",
"self",
",",
"ostream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"tstream",
"=",
"BytearrayStream",
"(",
")",
"self",
".",
"extension_name",
".",
"write",
"(",
"tstream",
",",
"kmip_version",
"=... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | ExtensionInformation.create | Construct an ExtensionInformation object from provided extension
values.
Args:
extension_name (str): The name of the extension. Optional,
defaults to None.
extension_tag (int): The tag number of the extension. Optional,
defaults to None.
... | kmip/core/objects.py | def create(cls, extension_name=None, extension_tag=None,
extension_type=None):
"""
Construct an ExtensionInformation object from provided extension
values.
Args:
extension_name (str): The name of the extension. Optional,
defaults to None.
... | def create(cls, extension_name=None, extension_tag=None,
extension_type=None):
"""
Construct an ExtensionInformation object from provided extension
values.
Args:
extension_name (str): The name of the extension. Optional,
defaults to None.
... | [
"Construct",
"an",
"ExtensionInformation",
"object",
"from",
"provided",
"extension",
"values",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L3478-L3512 | [
"def",
"create",
"(",
"cls",
",",
"extension_name",
"=",
"None",
",",
"extension_tag",
"=",
"None",
",",
"extension_type",
"=",
"None",
")",
":",
"extension_name",
"=",
"ExtensionName",
"(",
"extension_name",
")",
"extension_tag",
"=",
"ExtensionTag",
"(",
"ex... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | RevocationReason.read | Read the data encoding the RevocationReason object and decode it
into its constituent parts.
Args:
istream (Stream): A data stream containing encoded object data,
supporting a read method; usually a BytearrayStream object.
kmip_version (KMIPVersion): An enumerati... | kmip/core/objects.py | def read(self, istream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the RevocationReason object and decode it
into its constituent parts.
Args:
istream (Stream): A data stream containing encoded object data,
supporting a read method; ... | def read(self, istream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the RevocationReason object and decode it
into its constituent parts.
Args:
istream (Stream): A data stream containing encoded object data,
supporting a read method; ... | [
"Read",
"the",
"data",
"encoding",
"the",
"RevocationReason",
"object",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L3574-L3597 | [
"def",
"read",
"(",
"self",
",",
"istream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"RevocationReason",
",",
"self",
")",
".",
"read",
"(",
"istream",
",",
"kmip_version",
"=",
"kmip_version",
")",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | RevocationReason.write | Write the data encoding the RevocationReason object to a stream.
Args:
ostream (Stream): A data stream in which to encode object data,
supporting a write method; usually a BytearrayStream object.
kmip_version (KMIPVersion): An enumeration defining the KMIP
... | kmip/core/objects.py | def write(self, ostream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the RevocationReason object to a stream.
Args:
ostream (Stream): A data stream in which to encode object data,
supporting a write method; usually a BytearrayStream object.
... | def write(self, ostream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the RevocationReason object to a stream.
Args:
ostream (Stream): A data stream in which to encode object data,
supporting a write method; usually a BytearrayStream object.
... | [
"Write",
"the",
"data",
"encoding",
"the",
"RevocationReason",
"object",
"to",
"a",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L3599-L3619 | [
"def",
"write",
"(",
"self",
",",
"ostream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"tstream",
"=",
"BytearrayStream",
"(",
")",
"self",
".",
"revocation_code",
".",
"write",
"(",
"tstream",
",",
"kmip_version",
"... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | RevocationReason.validate | validate the RevocationReason object | kmip/core/objects.py | def validate(self):
"""
validate the RevocationReason object
"""
if not isinstance(self.revocation_code, RevocationReasonCode):
msg = "RevocationReaonCode expected"
raise TypeError(msg)
if self.revocation_message is not None:
if not isinstance(... | def validate(self):
"""
validate the RevocationReason object
"""
if not isinstance(self.revocation_code, RevocationReasonCode):
msg = "RevocationReaonCode expected"
raise TypeError(msg)
if self.revocation_message is not None:
if not isinstance(... | [
"validate",
"the",
"RevocationReason",
"object"
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L3621-L3631 | [
"def",
"validate",
"(",
"self",
")",
":",
"if",
"not",
"isinstance",
"(",
"self",
".",
"revocation_code",
",",
"RevocationReasonCode",
")",
":",
"msg",
"=",
"\"RevocationReaonCode expected\"",
"raise",
"TypeError",
"(",
"msg",
")",
"if",
"self",
".",
"revocati... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | ObjectDefaults.read | Read the data encoding the ObjectDefaults structure and decode it into
its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_version (KMIP... | kmip/core/objects.py | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_2_0):
"""
Read the data encoding the ObjectDefaults structure and decode it into
its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting a re... | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_2_0):
"""
Read the data encoding the ObjectDefaults structure and decode it into
its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting a re... | [
"Read",
"the",
"data",
"encoding",
"the",
"ObjectDefaults",
"structure",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L3700-L3753 | [
"def",
"read",
"(",
"self",
",",
"input_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_2_0",
")",
":",
"if",
"kmip_version",
"<",
"enums",
".",
"KMIPVersion",
".",
"KMIP_2_0",
":",
"raise",
"exceptions",
".",
"VersionNotSupported",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | ObjectDefaults.write | Write the ObjectDefaults structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
Attributes structure data, supporting a write method.
kmip_version (enum): A KMIPVersion enumeration defining the KMIP
version w... | kmip/core/objects.py | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_2_0):
"""
Write the ObjectDefaults structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
Attributes structure data, supporting a write method.
... | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_2_0):
"""
Write the ObjectDefaults structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
Attributes structure data, supporting a write method.
... | [
"Write",
"the",
"ObjectDefaults",
"structure",
"encoding",
"to",
"the",
"data",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L3755-L3801 | [
"def",
"write",
"(",
"self",
",",
"output_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_2_0",
")",
":",
"if",
"kmip_version",
"<",
"enums",
".",
"KMIPVersion",
".",
"KMIP_2_0",
":",
"raise",
"exceptions",
".",
"VersionNotSupported"... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | DefaultsInformation.read | Read the data encoding the DefaultsInformation structure and decode it
into its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_version ... | kmip/core/objects.py | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_2_0):
"""
Read the data encoding the DefaultsInformation structure and decode it
into its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting... | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_2_0):
"""
Read the data encoding the DefaultsInformation structure and decode it
into its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting... | [
"Read",
"the",
"data",
"encoding",
"the",
"DefaultsInformation",
"structure",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L3884-L3931 | [
"def",
"read",
"(",
"self",
",",
"input_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_2_0",
")",
":",
"if",
"kmip_version",
"<",
"enums",
".",
"KMIPVersion",
".",
"KMIP_2_0",
":",
"raise",
"exceptions",
".",
"VersionNotSupported",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | DefaultsInformation.write | Write the DefaultsInformation structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
Attributes structure data, supporting a write method.
kmip_version (enum): A KMIPVersion enumeration defining the KMIP
vers... | kmip/core/objects.py | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_2_0):
"""
Write the DefaultsInformation structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
Attributes structure data, supporting a write method.
... | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_2_0):
"""
Write the DefaultsInformation structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
Attributes structure data, supporting a write method.
... | [
"Write",
"the",
"DefaultsInformation",
"structure",
"encoding",
"to",
"the",
"data",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L3933-L3973 | [
"def",
"write",
"(",
"self",
",",
"output_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_2_0",
")",
":",
"if",
"kmip_version",
"<",
"enums",
".",
"KMIPVersion",
".",
"KMIP_2_0",
":",
"raise",
"exceptions",
".",
"VersionNotSupported"... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | RNGParameters.read | Read the data encoding the RNGParameters structure and decode it
into its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_version (KMIPV... | kmip/core/objects.py | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_3):
"""
Read the data encoding the RNGParameters structure and decode it
into its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting a rea... | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_3):
"""
Read the data encoding the RNGParameters structure and decode it
into its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting a rea... | [
"Read",
"the",
"data",
"encoding",
"the",
"RNGParameters",
"structure",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L4257-L4361 | [
"def",
"read",
"(",
"self",
",",
"input_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_3",
")",
":",
"if",
"kmip_version",
"<",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_3",
":",
"raise",
"exceptions",
".",
"VersionNotSupported",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | RNGParameters.write | Write the RNGParameters structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
Attributes structure data, supporting a write method.
kmip_version (enum): A KMIPVersion enumeration defining the KMIP
version wi... | kmip/core/objects.py | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_3):
"""
Write the RNGParameters structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
Attributes structure data, supporting a write method.
... | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_3):
"""
Write the RNGParameters structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
Attributes structure data, supporting a write method.
... | [
"Write",
"the",
"RNGParameters",
"structure",
"encoding",
"to",
"the",
"data",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L4363-L4443 | [
"def",
"write",
"(",
"self",
",",
"output_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_3",
")",
":",
"if",
"kmip_version",
"<",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_3",
":",
"raise",
"exceptions",
".",
"VersionNotSupported"... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | ProfileInformation.read | Read the data encoding the ProfileInformation structure and decode it
into its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_version (... | kmip/core/objects.py | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_3):
"""
Read the data encoding the ProfileInformation structure and decode it
into its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting ... | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_3):
"""
Read the data encoding the ProfileInformation structure and decode it
into its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting ... | [
"Read",
"the",
"data",
"encoding",
"the",
"ProfileInformation",
"structure",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L4604-L4659 | [
"def",
"read",
"(",
"self",
",",
"input_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_3",
")",
":",
"if",
"kmip_version",
"<",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_3",
":",
"raise",
"exceptions",
".",
"VersionNotSupported",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | ProfileInformation.write | Write the ProfileInformation structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
ProfileInformation structure data, supporting a write method.
kmip_version (enum): A KMIPVersion enumeration defining the KMIP
... | kmip/core/objects.py | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_3):
"""
Write the ProfileInformation structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
ProfileInformation structure data, supporting a write metho... | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_3):
"""
Write the ProfileInformation structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
ProfileInformation structure data, supporting a write metho... | [
"Write",
"the",
"ProfileInformation",
"structure",
"encoding",
"to",
"the",
"data",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L4661-L4706 | [
"def",
"write",
"(",
"self",
",",
"output_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_3",
")",
":",
"if",
"kmip_version",
"<",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_3",
":",
"raise",
"exceptions",
".",
"VersionNotSupported"... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | ValidationInformation.read | Read the data encoding the ValidationInformation structure and decode
it into its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_versio... | kmip/core/objects.py | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_3):
"""
Read the data encoding the ValidationInformation structure and decode
it into its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporti... | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_3):
"""
Read the data encoding the ValidationInformation structure and decode
it into its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporti... | [
"Read",
"the",
"data",
"encoding",
"the",
"ValidationInformation",
"structure",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L5082-L5260 | [
"def",
"read",
"(",
"self",
",",
"input_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_3",
")",
":",
"if",
"kmip_version",
"<",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_3",
":",
"raise",
"exceptions",
".",
"VersionNotSupported",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | ValidationInformation.write | Write the ValidationInformation structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
ValidationInformation structure data, supporting a write
method.
kmip_version (enum): A KMIPVersion enumeration defining ... | kmip/core/objects.py | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_3):
"""
Write the ValidationInformation structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
ValidationInformation structure data, supporting a write... | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_3):
"""
Write the ValidationInformation structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
ValidationInformation structure data, supporting a write... | [
"Write",
"the",
"ValidationInformation",
"structure",
"encoding",
"to",
"the",
"data",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L5262-L5383 | [
"def",
"write",
"(",
"self",
",",
"output_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_3",
")",
":",
"if",
"kmip_version",
"<",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_3",
":",
"raise",
"exceptions",
".",
"VersionNotSupported"... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CapabilityInformation.read | Read the data encoding the CapabilityInformation structure and decode
it into its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_versio... | kmip/core/objects.py | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_3):
"""
Read the data encoding the CapabilityInformation structure and decode
it into its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporti... | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_3):
"""
Read the data encoding the CapabilityInformation structure and decode
it into its constituent parts.
Args:
input_buffer (stream): A data stream containing encoded object
data, supporti... | [
"Read",
"the",
"data",
"encoding",
"the",
"CapabilityInformation",
"structure",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L5773-L5890 | [
"def",
"read",
"(",
"self",
",",
"input_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_3",
")",
":",
"if",
"kmip_version",
"<",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_3",
":",
"raise",
"exceptions",
".",
"VersionNotSupported",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CapabilityInformation.write | Write the CapabilityInformation structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
CapabilityInformation structure data, supporting a write
method.
kmip_version (enum): A KMIPVersion enumeration defining ... | kmip/core/objects.py | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_3):
"""
Write the CapabilityInformation structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
CapabilityInformation structure data, supporting a write... | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_3):
"""
Write the CapabilityInformation structure encoding to the data stream.
Args:
output_buffer (stream): A data stream in which to encode
CapabilityInformation structure data, supporting a write... | [
"Write",
"the",
"CapabilityInformation",
"structure",
"encoding",
"to",
"the",
"data",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/objects.py#L5892-L5978 | [
"def",
"write",
"(",
"self",
",",
"output_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_3",
")",
":",
"if",
"kmip_version",
"<",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_3",
":",
"raise",
"exceptions",
".",
"VersionNotSupported"... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | KmipServer.start | Prepare the server to start serving connections.
Configure the server socket handler and establish a TLS wrapping
socket from which all client connections descend. Bind this TLS
socket to the specified network address for the server.
Raises:
NetworkingError: Raised if the T... | kmip/services/server/server.py | def start(self):
"""
Prepare the server to start serving connections.
Configure the server socket handler and establish a TLS wrapping
socket from which all client connections descend. Bind this TLS
socket to the specified network address for the server.
Raises:
... | def start(self):
"""
Prepare the server to start serving connections.
Configure the server socket handler and establish a TLS wrapping
socket from which all client connections descend. Bind this TLS
socket to the specified network address for the server.
Raises:
... | [
"Prepare",
"the",
"server",
"to",
"start",
"serving",
"connections",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/server.py#L231-L325 | [
"def",
"start",
"(",
"self",
")",
":",
"self",
".",
"manager",
"=",
"multiprocessing",
".",
"Manager",
"(",
")",
"self",
".",
"policies",
"=",
"self",
".",
"manager",
".",
"dict",
"(",
")",
"policies",
"=",
"copy",
".",
"deepcopy",
"(",
"operation_poli... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | KmipServer.stop | Stop the server.
Halt server client connections and clean up any existing connection
threads.
Raises:
NetworkingError: Raised if a failure occurs while sutting down
or closing the TLS server socket. | kmip/services/server/server.py | def stop(self):
"""
Stop the server.
Halt server client connections and clean up any existing connection
threads.
Raises:
NetworkingError: Raised if a failure occurs while sutting down
or closing the TLS server socket.
"""
self._logge... | def stop(self):
"""
Stop the server.
Halt server client connections and clean up any existing connection
threads.
Raises:
NetworkingError: Raised if a failure occurs while sutting down
or closing the TLS server socket.
"""
self._logge... | [
"Stop",
"the",
"server",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/server.py#L327-L381 | [
"def",
"stop",
"(",
"self",
")",
":",
"self",
".",
"_logger",
".",
"info",
"(",
"\"Cleaning up remaining connection threads.\"",
")",
"for",
"thread",
"in",
"threading",
".",
"enumerate",
"(",
")",
":",
"if",
"thread",
"is",
"not",
"threading",
".",
"current... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | KmipServer.serve | Serve client connections.
Begin listening for client connections, spinning off new KmipSessions
as connections are handled. Set up signal handling to shutdown
connection service as needed. | kmip/services/server/server.py | def serve(self):
"""
Serve client connections.
Begin listening for client connections, spinning off new KmipSessions
as connections are handled. Set up signal handling to shutdown
connection service as needed.
"""
self._socket.listen(5)
def _signal_handl... | def serve(self):
"""
Serve client connections.
Begin listening for client connections, spinning off new KmipSessions
as connections are handled. Set up signal handling to shutdown
connection service as needed.
"""
self._socket.listen(5)
def _signal_handl... | [
"Serve",
"client",
"connections",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/server.py#L383-L433 | [
"def",
"serve",
"(",
"self",
")",
":",
"self",
".",
"_socket",
".",
"listen",
"(",
"5",
")",
"def",
"_signal_handler",
"(",
"signal_number",
",",
"stack_frame",
")",
":",
"self",
".",
"_is_serving",
"=",
"False",
"# Python3.5+ silently ignores SIGINT and retries... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | LocateRequestPayload.read | Read the data encoding the Locate request payload and decode it into
its constituent parts.
Args:
input_buffer (stream): A data buffer containing encoded object
data, supporting a read method.
kmip_version (KMIPVersion): An enumeration defining the KMIP
... | kmip/core/messages/payloads/locate.py | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Locate request payload and decode it into
its constituent parts.
Args:
input_buffer (stream): A data buffer containing encoded object
data, supporting a read... | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Locate request payload and decode it into
its constituent parts.
Args:
input_buffer (stream): A data buffer containing encoded object
data, supporting a read... | [
"Read",
"the",
"data",
"encoding",
"the",
"Locate",
"request",
"payload",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/locate.py#L192-L269 | [
"def",
"read",
"(",
"self",
",",
"input_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"LocateRequestPayload",
",",
"self",
")",
".",
"read",
"(",
"input_buffer",
",",
"kmip_version",
"=",
"kmip_versi... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | LocateRequestPayload.write | Write the data encoding the Locate request payload to a buffer.
Args:
output_buffer (stream): A data buffer in which to encode object
data, supporting a write method.
kmip_version (KMIPVersion): An enumeration defining the KMIP
version with which the obje... | kmip/core/messages/payloads/locate.py | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Locate request payload to a buffer.
Args:
output_buffer (stream): A data buffer in which to encode object
data, supporting a write method.
kmip_versio... | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Locate request payload to a buffer.
Args:
output_buffer (stream): A data buffer in which to encode object
data, supporting a write method.
kmip_versio... | [
"Write",
"the",
"data",
"encoding",
"the",
"Locate",
"request",
"payload",
"to",
"a",
"buffer",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/locate.py#L271-L330 | [
"def",
"write",
"(",
"self",
",",
"output_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_buffer",
"=",
"utils",
".",
"BytearrayStream",
"(",
")",
"if",
"self",
".",
"_maximum_items",
":",
"self",
".",
"_ma... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | LocateResponsePayload.read | Read the data encoding the Locate response payload and decode it
into its constituent parts.
Args:
input_buffer (stream): A data buffer containing encoded object
data, supporting a read method.
kmip_version (KMIPVersion): An enumeration defining the KMIP
... | kmip/core/messages/payloads/locate.py | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Locate response payload and decode it
into its constituent parts.
Args:
input_buffer (stream): A data buffer containing encoded object
data, supporting a rea... | def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Locate response payload and decode it
into its constituent parts.
Args:
input_buffer (stream): A data buffer containing encoded object
data, supporting a rea... | [
"Read",
"the",
"data",
"encoding",
"the",
"Locate",
"response",
"payload",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/locate.py#L459-L494 | [
"def",
"read",
"(",
"self",
",",
"input_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"LocateResponsePayload",
",",
"self",
")",
".",
"read",
"(",
"input_buffer",
",",
"kmip_version",
"=",
"kmip_vers... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | LocateResponsePayload.write | Write the data encoding the Locate response payload to a buffer.
Args:
output_buffer (stream): A data buffer in which to encode object
data, supporting a write method.
kmip_version (KMIPVersion): An enumeration defining the KMIP
version with which the obj... | kmip/core/messages/payloads/locate.py | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Locate response payload to a buffer.
Args:
output_buffer (stream): A data buffer in which to encode object
data, supporting a write method.
kmip_versi... | def write(self, output_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Locate response payload to a buffer.
Args:
output_buffer (stream): A data buffer in which to encode object
data, supporting a write method.
kmip_versi... | [
"Write",
"the",
"data",
"encoding",
"the",
"Locate",
"response",
"payload",
"to",
"a",
"buffer",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/locate.py#L496-L524 | [
"def",
"write",
"(",
"self",
",",
"output_buffer",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_buffer",
"=",
"utils",
".",
"BytearrayStream",
"(",
")",
"if",
"self",
".",
"_located_items",
":",
"self",
".",
"_lo... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CryptographyEngine.create_symmetric_key | Create a symmetric key.
Args:
algorithm(CryptographicAlgorithm): An enumeration specifying the
algorithm for which the created key will be compliant.
length(int): The length of the key to be created. This value must
be compliant with the constraints of th... | kmip/services/server/crypto/engine.py | def create_symmetric_key(self, algorithm, length):
"""
Create a symmetric key.
Args:
algorithm(CryptographicAlgorithm): An enumeration specifying the
algorithm for which the created key will be compliant.
length(int): The length of the key to be created. ... | def create_symmetric_key(self, algorithm, length):
"""
Create a symmetric key.
Args:
algorithm(CryptographicAlgorithm): An enumeration specifying the
algorithm for which the created key will be compliant.
length(int): The length of the key to be created. ... | [
"Create",
"a",
"symmetric",
"key",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/crypto/engine.py#L125-L182 | [
"def",
"create_symmetric_key",
"(",
"self",
",",
"algorithm",
",",
"length",
")",
":",
"if",
"algorithm",
"not",
"in",
"self",
".",
"_symmetric_key_algorithms",
".",
"keys",
"(",
")",
":",
"raise",
"exceptions",
".",
"InvalidField",
"(",
"\"The cryptographic alg... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CryptographyEngine.create_asymmetric_key_pair | Create an asymmetric key pair.
Args:
algorithm(CryptographicAlgorithm): An enumeration specifying the
algorithm for which the created keys will be compliant.
length(int): The length of the keys to be created. This value must
be compliant with the constrai... | kmip/services/server/crypto/engine.py | def create_asymmetric_key_pair(self, algorithm, length):
"""
Create an asymmetric key pair.
Args:
algorithm(CryptographicAlgorithm): An enumeration specifying the
algorithm for which the created keys will be compliant.
length(int): The length of the keys ... | def create_asymmetric_key_pair(self, algorithm, length):
"""
Create an asymmetric key pair.
Args:
algorithm(CryptographicAlgorithm): An enumeration specifying the
algorithm for which the created keys will be compliant.
length(int): The length of the keys ... | [
"Create",
"an",
"asymmetric",
"key",
"pair",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/crypto/engine.py#L184-L220 | [
"def",
"create_asymmetric_key_pair",
"(",
"self",
",",
"algorithm",
",",
"length",
")",
":",
"if",
"algorithm",
"not",
"in",
"self",
".",
"_asymmetric_key_algorithms",
".",
"keys",
"(",
")",
":",
"raise",
"exceptions",
".",
"InvalidField",
"(",
"\"The cryptograp... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CryptographyEngine.mac | Generate message authentication code.
Args:
algorithm(CryptographicAlgorithm): An enumeration specifying the
algorithm for which the MAC operation will use.
key(bytes): secret key used in the MAC operation
data(bytes): The data to be MACed.
Returns:
... | kmip/services/server/crypto/engine.py | def mac(self, algorithm, key, data):
"""
Generate message authentication code.
Args:
algorithm(CryptographicAlgorithm): An enumeration specifying the
algorithm for which the MAC operation will use.
key(bytes): secret key used in the MAC operation
... | def mac(self, algorithm, key, data):
"""
Generate message authentication code.
Args:
algorithm(CryptographicAlgorithm): An enumeration specifying the
algorithm for which the MAC operation will use.
key(bytes): secret key used in the MAC operation
... | [
"Generate",
"message",
"authentication",
"code",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/crypto/engine.py#L222-L288 | [
"def",
"mac",
"(",
"self",
",",
"algorithm",
",",
"key",
",",
"data",
")",
":",
"mac_data",
"=",
"None",
"if",
"algorithm",
"in",
"self",
".",
"_hash_algorithms",
".",
"keys",
"(",
")",
":",
"self",
".",
"logger",
".",
"info",
"(",
"\"Generating a hash... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CryptographyEngine.encrypt | Encrypt data using symmetric or asymmetric encryption.
Args:
encryption_algorithm (CryptographicAlgorithm): An enumeration
specifying the encryption algorithm to use for encryption.
encryption_key (bytes): The bytes of the encryption key to use for
encryp... | kmip/services/server/crypto/engine.py | def encrypt(self,
encryption_algorithm,
encryption_key,
plain_text,
cipher_mode=None,
padding_method=None,
iv_nonce=None,
hashing_algorithm=None):
"""
Encrypt data using symmetric or asymmetri... | def encrypt(self,
encryption_algorithm,
encryption_key,
plain_text,
cipher_mode=None,
padding_method=None,
iv_nonce=None,
hashing_algorithm=None):
"""
Encrypt data using symmetric or asymmetri... | [
"Encrypt",
"data",
"using",
"symmetric",
"or",
"asymmetric",
"encryption",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/crypto/engine.py#L290-L377 | [
"def",
"encrypt",
"(",
"self",
",",
"encryption_algorithm",
",",
"encryption_key",
",",
"plain_text",
",",
"cipher_mode",
"=",
"None",
",",
"padding_method",
"=",
"None",
",",
"iv_nonce",
"=",
"None",
",",
"hashing_algorithm",
"=",
"None",
")",
":",
"if",
"e... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CryptographyEngine._encrypt_symmetric | Encrypt data using symmetric encryption.
Args:
encryption_algorithm (CryptographicAlgorithm): An enumeration
specifying the symmetric encryption algorithm to use for
encryption.
encryption_key (bytes): The bytes of the symmetric key to use for
... | kmip/services/server/crypto/engine.py | def _encrypt_symmetric(
self,
encryption_algorithm,
encryption_key,
plain_text,
cipher_mode=None,
padding_method=None,
iv_nonce=None):
"""
Encrypt data using symmetric encryption.
Args:
encryption_al... | def _encrypt_symmetric(
self,
encryption_algorithm,
encryption_key,
plain_text,
cipher_mode=None,
padding_method=None,
iv_nonce=None):
"""
Encrypt data using symmetric encryption.
Args:
encryption_al... | [
"Encrypt",
"data",
"using",
"symmetric",
"encryption",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/crypto/engine.py#L379-L488 | [
"def",
"_encrypt_symmetric",
"(",
"self",
",",
"encryption_algorithm",
",",
"encryption_key",
",",
"plain_text",
",",
"cipher_mode",
"=",
"None",
",",
"padding_method",
"=",
"None",
",",
"iv_nonce",
"=",
"None",
")",
":",
"# Set up the algorithm",
"algorithm",
"="... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CryptographyEngine._encrypt_asymmetric | Encrypt data using asymmetric encryption.
Args:
encryption_algorithm (CryptographicAlgorithm): An enumeration
specifying the asymmetric encryption algorithm to use for
encryption. Required.
encryption_key (bytes): The bytes of the public key to use for
... | kmip/services/server/crypto/engine.py | def _encrypt_asymmetric(self,
encryption_algorithm,
encryption_key,
plain_text,
padding_method,
hashing_algorithm=None):
"""
Encrypt data using asymmetric encryptio... | def _encrypt_asymmetric(self,
encryption_algorithm,
encryption_key,
plain_text,
padding_method,
hashing_algorithm=None):
"""
Encrypt data using asymmetric encryptio... | [
"Encrypt",
"data",
"using",
"asymmetric",
"encryption",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/crypto/engine.py#L490-L571 | [
"def",
"_encrypt_asymmetric",
"(",
"self",
",",
"encryption_algorithm",
",",
"encryption_key",
",",
"plain_text",
",",
"padding_method",
",",
"hashing_algorithm",
"=",
"None",
")",
":",
"if",
"encryption_algorithm",
"==",
"enums",
".",
"CryptographicAlgorithm",
".",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CryptographyEngine.decrypt | Decrypt data using symmetric decryption.
Args:
decryption_algorithm (CryptographicAlgorithm): An enumeration
specifying the symmetric decryption algorithm to use for
decryption.
decryption_key (bytes): The bytes of the symmetric key to use for
... | kmip/services/server/crypto/engine.py | def decrypt(self,
decryption_algorithm,
decryption_key,
cipher_text,
cipher_mode=None,
padding_method=None,
iv_nonce=None,
hashing_algorithm=None):
"""
Decrypt data using symmetric decryption.... | def decrypt(self,
decryption_algorithm,
decryption_key,
cipher_text,
cipher_mode=None,
padding_method=None,
iv_nonce=None,
hashing_algorithm=None):
"""
Decrypt data using symmetric decryption.... | [
"Decrypt",
"data",
"using",
"symmetric",
"decryption",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/crypto/engine.py#L608-L691 | [
"def",
"decrypt",
"(",
"self",
",",
"decryption_algorithm",
",",
"decryption_key",
",",
"cipher_text",
",",
"cipher_mode",
"=",
"None",
",",
"padding_method",
"=",
"None",
",",
"iv_nonce",
"=",
"None",
",",
"hashing_algorithm",
"=",
"None",
")",
":",
"if",
"... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CryptographyEngine._decrypt_symmetric | Decrypt data using symmetric decryption.
Args:
decryption_algorithm (CryptographicAlgorithm): An enumeration
specifying the symmetric decryption algorithm to use for
decryption.
decryption_key (bytes): The bytes of the symmetric key to use for
... | kmip/services/server/crypto/engine.py | def _decrypt_symmetric(
self,
decryption_algorithm,
decryption_key,
cipher_text,
cipher_mode=None,
padding_method=None,
iv_nonce=None):
"""
Decrypt data using symmetric decryption.
Args:
decryption_a... | def _decrypt_symmetric(
self,
decryption_algorithm,
decryption_key,
cipher_text,
cipher_mode=None,
padding_method=None,
iv_nonce=None):
"""
Decrypt data using symmetric decryption.
Args:
decryption_a... | [
"Decrypt",
"data",
"using",
"symmetric",
"decryption",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/crypto/engine.py#L693-L790 | [
"def",
"_decrypt_symmetric",
"(",
"self",
",",
"decryption_algorithm",
",",
"decryption_key",
",",
"cipher_text",
",",
"cipher_mode",
"=",
"None",
",",
"padding_method",
"=",
"None",
",",
"iv_nonce",
"=",
"None",
")",
":",
"# Set up the algorithm",
"algorithm",
"=... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CryptographyEngine._decrypt_asymmetric | Encrypt data using asymmetric decryption.
Args:
decryption_algorithm (CryptographicAlgorithm): An enumeration
specifying the asymmetric decryption algorithm to use for
decryption. Required.
decryption_key (bytes): The bytes of the private key to use for
... | kmip/services/server/crypto/engine.py | def _decrypt_asymmetric(
self,
decryption_algorithm,
decryption_key,
cipher_text,
padding_method,
hashing_algorithm=None):
"""
Encrypt data using asymmetric decryption.
Args:
decryption_algorithm (CryptographicA... | def _decrypt_asymmetric(
self,
decryption_algorithm,
decryption_key,
cipher_text,
padding_method,
hashing_algorithm=None):
"""
Encrypt data using asymmetric decryption.
Args:
decryption_algorithm (CryptographicA... | [
"Encrypt",
"data",
"using",
"asymmetric",
"decryption",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/crypto/engine.py#L792-L880 | [
"def",
"_decrypt_asymmetric",
"(",
"self",
",",
"decryption_algorithm",
",",
"decryption_key",
",",
"cipher_text",
",",
"padding_method",
",",
"hashing_algorithm",
"=",
"None",
")",
":",
"if",
"decryption_algorithm",
"==",
"enums",
".",
"CryptographicAlgorithm",
".",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CryptographyEngine._create_rsa_key_pair | Create an RSA key pair.
Args:
length(int): The length of the keys to be created. This value must
be compliant with the constraints of the provided algorithm.
public_exponent(int): The value of the public exponent needed to
generate the keys. Usually a sma... | kmip/services/server/crypto/engine.py | def _create_rsa_key_pair(self, length, public_exponent=65537):
"""
Create an RSA key pair.
Args:
length(int): The length of the keys to be created. This value must
be compliant with the constraints of the provided algorithm.
public_exponent(int): The valu... | def _create_rsa_key_pair(self, length, public_exponent=65537):
"""
Create an RSA key pair.
Args:
length(int): The length of the keys to be created. This value must
be compliant with the constraints of the provided algorithm.
public_exponent(int): The valu... | [
"Create",
"an",
"RSA",
"key",
"pair",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/crypto/engine.py#L882-L944 | [
"def",
"_create_rsa_key_pair",
"(",
"self",
",",
"length",
",",
"public_exponent",
"=",
"65537",
")",
":",
"self",
".",
"logger",
".",
"info",
"(",
"\"Generating an RSA key pair with length: {0}, and \"",
"\"public_exponent: {1}\"",
".",
"format",
"(",
"length",
",",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CryptographyEngine.derive_key | Derive key data using a variety of key derivation functions.
Args:
derivation_method (DerivationMethod): An enumeration specifying
the key derivation method to use. Required.
derivation_length (int): An integer specifying the size of the
derived key data ... | kmip/services/server/crypto/engine.py | def derive_key(self,
derivation_method,
derivation_length,
derivation_data=None,
key_material=None,
hash_algorithm=None,
salt=None,
iteration_count=None,
encryption_alg... | def derive_key(self,
derivation_method,
derivation_length,
derivation_data=None,
key_material=None,
hash_algorithm=None,
salt=None,
iteration_count=None,
encryption_alg... | [
"Derive",
"key",
"data",
"using",
"a",
"variety",
"of",
"key",
"derivation",
"functions",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/crypto/engine.py#L946-L1123 | [
"def",
"derive_key",
"(",
"self",
",",
"derivation_method",
",",
"derivation_length",
",",
"derivation_data",
"=",
"None",
",",
"key_material",
"=",
"None",
",",
"hash_algorithm",
"=",
"None",
",",
"salt",
"=",
"None",
",",
"iteration_count",
"=",
"None",
",",... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CryptographyEngine.wrap_key | Args:
key_material (bytes): The bytes of the key to wrap. Required.
wrapping_method (WrappingMethod): A WrappingMethod enumeration
specifying what wrapping technique to use to wrap the key
material. Required.
key_wrap_algorithm (BlockCipherMode): A Blo... | kmip/services/server/crypto/engine.py | def wrap_key(self,
key_material,
wrapping_method,
key_wrap_algorithm,
encryption_key):
"""
Args:
key_material (bytes): The bytes of the key to wrap. Required.
wrapping_method (WrappingMethod): A WrappingMethod en... | def wrap_key(self,
key_material,
wrapping_method,
key_wrap_algorithm,
encryption_key):
"""
Args:
key_material (bytes): The bytes of the key to wrap. Required.
wrapping_method (WrappingMethod): A WrappingMethod en... | [
"Args",
":",
"key_material",
"(",
"bytes",
")",
":",
"The",
"bytes",
"of",
"the",
"key",
"to",
"wrap",
".",
"Required",
".",
"wrapping_method",
"(",
"WrappingMethod",
")",
":",
"A",
"WrappingMethod",
"enumeration",
"specifying",
"what",
"wrapping",
"technique"... | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/crypto/engine.py#L1125-L1189 | [
"def",
"wrap_key",
"(",
"self",
",",
"key_material",
",",
"wrapping_method",
",",
"key_wrap_algorithm",
",",
"encryption_key",
")",
":",
"if",
"wrapping_method",
"==",
"enums",
".",
"WrappingMethod",
".",
"ENCRYPT",
":",
"if",
"key_wrap_algorithm",
"==",
"enums",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CryptographyEngine._create_RSA_private_key | Instantiates an RSA key from bytes.
Args:
bytes (byte string): Bytes of RSA private key.
Returns:
private_key
(cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey):
RSA private key created from key bytes. | kmip/services/server/crypto/engine.py | def _create_RSA_private_key(self,
bytes):
"""
Instantiates an RSA key from bytes.
Args:
bytes (byte string): Bytes of RSA private key.
Returns:
private_key
(cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKe... | def _create_RSA_private_key(self,
bytes):
"""
Instantiates an RSA key from bytes.
Args:
bytes (byte string): Bytes of RSA private key.
Returns:
private_key
(cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKe... | [
"Instantiates",
"an",
"RSA",
"key",
"from",
"bytes",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/crypto/engine.py#L1191-L1217 | [
"def",
"_create_RSA_private_key",
"(",
"self",
",",
"bytes",
")",
":",
"try",
":",
"private_key",
"=",
"serialization",
".",
"load_pem_private_key",
"(",
"bytes",
",",
"password",
"=",
"None",
",",
"backend",
"=",
"default_backend",
"(",
")",
")",
"return",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CryptographyEngine.sign | Args:
digital_signature_algorithm (DigitalSignatureAlgorithm): An
enumeration specifying the asymmetric cryptographic algorithm
and hashing algorithm to use for the signature operation. Can
be None if cryptographic_algorithm and hash_algorithm are set.
... | kmip/services/server/crypto/engine.py | def sign(self,
digital_signature_algorithm,
crypto_alg,
hash_algorithm,
padding,
signing_key,
data):
"""
Args:
digital_signature_algorithm (DigitalSignatureAlgorithm): An
enumeration specifying the ... | def sign(self,
digital_signature_algorithm,
crypto_alg,
hash_algorithm,
padding,
signing_key,
data):
"""
Args:
digital_signature_algorithm (DigitalSignatureAlgorithm): An
enumeration specifying the ... | [
"Args",
":",
"digital_signature_algorithm",
"(",
"DigitalSignatureAlgorithm",
")",
":",
"An",
"enumeration",
"specifying",
"the",
"asymmetric",
"cryptographic",
"algorithm",
"and",
"hashing",
"algorithm",
"to",
"use",
"for",
"the",
"signature",
"operation",
".",
"Can"... | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/crypto/engine.py#L1219-L1311 | [
"def",
"sign",
"(",
"self",
",",
"digital_signature_algorithm",
",",
"crypto_alg",
",",
"hash_algorithm",
",",
"padding",
",",
"signing_key",
",",
"data",
")",
":",
"if",
"digital_signature_algorithm",
":",
"(",
"hash_alg",
",",
"crypto_alg",
")",
"=",
"self",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | CryptographyEngine.verify_signature | Verify a message signature.
Args:
signing_key (bytes): The bytes of the signing key to use for
signature verification. Required.
message (bytes): The bytes of the message that corresponds with
the signature. Required.
signature (bytes): The by... | kmip/services/server/crypto/engine.py | def verify_signature(self,
signing_key,
message,
signature,
padding_method,
signing_algorithm=None,
hashing_algorithm=None,
digital_signature_alg... | def verify_signature(self,
signing_key,
message,
signature,
padding_method,
signing_algorithm=None,
hashing_algorithm=None,
digital_signature_alg... | [
"Verify",
"a",
"message",
"signature",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/crypto/engine.py#L1313-L1441 | [
"def",
"verify_signature",
"(",
"self",
",",
"signing_key",
",",
"message",
",",
"signature",
",",
"padding_method",
",",
"signing_algorithm",
"=",
"None",
",",
"hashing_algorithm",
"=",
"None",
",",
"digital_signature_algorithm",
"=",
"None",
")",
":",
"backend",... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | SignResponsePayload.read | Read the data encoding the Sign response payload and decode it.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_version (KMIPVersion): An enumeration defining the ... | kmip/core/messages/payloads/sign.py | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Sign response payload and decode it.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
... | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Sign response payload and decode it.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
... | [
"Read",
"the",
"data",
"encoding",
"the",
"Sign",
"response",
"payload",
"and",
"decode",
"it",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/sign.py#L311-L355 | [
"def",
"read",
"(",
"self",
",",
"input_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"SignResponsePayload",
",",
"self",
")",
".",
"read",
"(",
"input_stream",
",",
"kmip_version",
"=",
"kmip_versio... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | SignResponsePayload.write | Write the data encoding the Sign response to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
object.
Raises:
ValueError: Raised if the unique_identifier or... | kmip/core/messages/payloads/sign.py | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Sign response to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
... | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Sign response to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
... | [
"Write",
"the",
"data",
"encoding",
"the",
"Sign",
"response",
"to",
"a",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/sign.py#L357-L398 | [
"def",
"write",
"(",
"self",
",",
"output_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_stream",
"=",
"utils",
".",
"BytearrayStream",
"(",
")",
"if",
"self",
".",
"_unique_identifier",
":",
"self",
".",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | GetUsageAllocationRequestPayload.read | Read the data encoding the GetUsageAllocation request payload and
decode it into its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_ver... | kmip/core/messages/payloads/get_usage_allocation.py | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the GetUsageAllocation request payload and
decode it into its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, suppo... | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the GetUsageAllocation request payload and
decode it into its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, suppo... | [
"Read",
"the",
"data",
"encoding",
"the",
"GetUsageAllocation",
"request",
"payload",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/get_usage_allocation.py#L93-L133 | [
"def",
"read",
"(",
"self",
",",
"input_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"GetUsageAllocationRequestPayload",
",",
"self",
")",
".",
"read",
"(",
"input_stream",
",",
"kmip_version",
"=",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | protocol_version_to_kmip_version | Convert a ProtocolVersion struct to its KMIPVersion enumeration equivalent.
Args:
value (ProtocolVersion): A ProtocolVersion struct to be converted into
a KMIPVersion enumeration.
Returns:
KMIPVersion: The enumeration equivalent of the struct. If the struct
cannot be co... | kmip/core/messages/contents.py | def protocol_version_to_kmip_version(value):
"""
Convert a ProtocolVersion struct to its KMIPVersion enumeration equivalent.
Args:
value (ProtocolVersion): A ProtocolVersion struct to be converted into
a KMIPVersion enumeration.
Returns:
KMIPVersion: The enumeration equival... | def protocol_version_to_kmip_version(value):
"""
Convert a ProtocolVersion struct to its KMIPVersion enumeration equivalent.
Args:
value (ProtocolVersion): A ProtocolVersion struct to be converted into
a KMIPVersion enumeration.
Returns:
KMIPVersion: The enumeration equival... | [
"Convert",
"a",
"ProtocolVersion",
"struct",
"to",
"its",
"KMIPVersion",
"enumeration",
"equivalent",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/contents.py#L252-L281 | [
"def",
"protocol_version_to_kmip_version",
"(",
"value",
")",
":",
"if",
"not",
"isinstance",
"(",
"value",
",",
"ProtocolVersion",
")",
":",
"return",
"None",
"if",
"value",
".",
"major",
"==",
"1",
":",
"if",
"value",
".",
"minor",
"==",
"0",
":",
"ret... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | ProtocolVersion.read | Read the data encoding the ProtocolVersion struct and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_version (KMIPVe... | kmip/core/messages/contents.py | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the ProtocolVersion struct and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read... | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the ProtocolVersion struct and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read... | [
"Read",
"the",
"data",
"encoding",
"the",
"ProtocolVersion",
"struct",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/contents.py#L101-L144 | [
"def",
"read",
"(",
"self",
",",
"input_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"ProtocolVersion",
",",
"self",
")",
".",
"read",
"(",
"input_stream",
",",
"kmip_version",
"=",
"kmip_version",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | ProtocolVersion.write | Write the data encoding the ProtocolVersion struct to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
object.
kmip_version (KMIPVersion): An enumeration defining th... | kmip/core/messages/contents.py | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the ProtocolVersion struct to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStre... | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the ProtocolVersion struct to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStre... | [
"Write",
"the",
"data",
"encoding",
"the",
"ProtocolVersion",
"struct",
"to",
"a",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/contents.py#L146-L182 | [
"def",
"write",
"(",
"self",
",",
"output_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_stream",
"=",
"utils",
".",
"BytearrayStream",
"(",
")",
"if",
"self",
".",
"_major",
":",
"self",
".",
"_major",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | Authentication.read | Read the data encoding the Authentication struct and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_version (KMIPVer... | kmip/core/messages/contents.py | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Authentication struct and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read ... | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Authentication struct and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read ... | [
"Read",
"the",
"data",
"encoding",
"the",
"Authentication",
"struct",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/contents.py#L358-L386 | [
"def",
"read",
"(",
"self",
",",
"input_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"Authentication",
",",
"self",
")",
".",
"read",
"(",
"input_stream",
",",
"kmip_version",
"=",
"kmip_version",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | Authentication.write | Write the data encoding the Authentication struct to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
object.
kmip_version (KMIPVersion): An enumeration defining the... | kmip/core/messages/contents.py | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Authentication struct to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStrea... | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Authentication struct to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStrea... | [
"Write",
"the",
"data",
"encoding",
"the",
"Authentication",
"struct",
"to",
"a",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/contents.py#L388-L412 | [
"def",
"write",
"(",
"self",
",",
"output_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_stream",
"=",
"utils",
".",
"BytearrayStream",
"(",
")",
"if",
"len",
"(",
"self",
".",
"_credentials",
")",
"==",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | PollRequestPayload.read | Read the data encoding the Poll request payload and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_version (KMIPVers... | kmip/core/messages/payloads/poll.py | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Poll request payload and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read m... | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Poll request payload and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read m... | [
"Read",
"the",
"data",
"encoding",
"the",
"Poll",
"request",
"payload",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/poll.py#L67-L102 | [
"def",
"read",
"(",
"self",
",",
"input_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"PollRequestPayload",
",",
"self",
")",
".",
"read",
"(",
"input_stream",
",",
"kmip_version",
"=",
"kmip_version... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | Certificate.read | Read the data encoding the Certificate object and decode it into its
constituent parts.
Args:
istream (Stream): A data stream containing encoded object data,
supporting a read method; usually a BytearrayStream object.
kmip_version (KMIPVersion): An enumeration de... | kmip/core/secrets.py | def read(self, istream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Certificate object and decode it into its
constituent parts.
Args:
istream (Stream): A data stream containing encoded object data,
supporting a read method; usual... | def read(self, istream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Certificate object and decode it into its
constituent parts.
Args:
istream (Stream): A data stream containing encoded object data,
supporting a read method; usual... | [
"Read",
"the",
"data",
"encoding",
"the",
"Certificate",
"object",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/secrets.py#L72-L93 | [
"def",
"read",
"(",
"self",
",",
"istream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"Certificate",
",",
"self",
")",
".",
"read",
"(",
"istream",
",",
"kmip_version",
"=",
"kmip_version",
")",
"tstr... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | Certificate.write | Write the data encoding the Certificate object to a stream.
Args:
ostream (Stream): A data stream in which to encode object data,
supporting a write method; usually a BytearrayStream object.
kmip_version (KMIPVersion): An enumeration defining the KMIP
ver... | kmip/core/secrets.py | def write(self, ostream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Certificate object to a stream.
Args:
ostream (Stream): A data stream in which to encode object data,
supporting a write method; usually a BytearrayStream object.
... | def write(self, ostream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Certificate object to a stream.
Args:
ostream (Stream): A data stream in which to encode object data,
supporting a write method; usually a BytearrayStream object.
... | [
"Write",
"the",
"data",
"encoding",
"the",
"Certificate",
"object",
"to",
"a",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/secrets.py#L95-L113 | [
"def",
"write",
"(",
"self",
",",
"ostream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"tstream",
"=",
"BytearrayStream",
"(",
")",
"self",
".",
"certificate_type",
".",
"write",
"(",
"tstream",
",",
"kmip_version",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | SLUGSConnector.authenticate | Query the configured SLUGS service with the provided credentials.
Args:
connection_certificate (cryptography.x509.Certificate): An X.509
certificate object obtained from the connection being
authenticated. Required for SLUGS authentication.
connection_inf... | kmip/services/server/auth/slugs.py | def authenticate(self,
connection_certificate=None,
connection_info=None,
request_credentials=None):
"""
Query the configured SLUGS service with the provided credentials.
Args:
connection_certificate (cryptography.x509.C... | def authenticate(self,
connection_certificate=None,
connection_info=None,
request_credentials=None):
"""
Query the configured SLUGS service with the provided credentials.
Args:
connection_certificate (cryptography.x509.C... | [
"Query",
"the",
"configured",
"SLUGS",
"service",
"with",
"the",
"provided",
"credentials",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/auth/slugs.py#L62-L108 | [
"def",
"authenticate",
"(",
"self",
",",
"connection_certificate",
"=",
"None",
",",
"connection_info",
"=",
"None",
",",
"request_credentials",
"=",
"None",
")",
":",
"if",
"(",
"self",
".",
"users_url",
"is",
"None",
")",
"or",
"(",
"self",
".",
"groups_... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | ArchiveResponsePayload.read | Read the data encoding the Archive response payload and decode it
into its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_version (KMIP... | kmip/core/messages/payloads/archive.py | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Archive response payload and decode it
into its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a re... | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Archive response payload and decode it
into its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a re... | [
"Read",
"the",
"data",
"encoding",
"the",
"Archive",
"response",
"payload",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/archive.py#L196-L228 | [
"def",
"read",
"(",
"self",
",",
"input_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"ArchiveResponsePayload",
",",
"self",
")",
".",
"read",
"(",
"input_stream",
",",
"kmip_version",
"=",
"kmip_ver... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | ArchiveResponsePayload.write | Write the data encoding the Archive response payload to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
object.
kmip_version (KMIPVersion): An enumeration defining ... | kmip/core/messages/payloads/archive.py | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Archive response payload to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearraySt... | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Archive response payload to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearraySt... | [
"Write",
"the",
"data",
"encoding",
"the",
"Archive",
"response",
"payload",
"to",
"a",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/archive.py#L230-L258 | [
"def",
"write",
"(",
"self",
",",
"output_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_stream",
"=",
"utils",
".",
"BytearrayStream",
"(",
")",
"if",
"self",
".",
"_unique_identifier",
":",
"self",
".",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | KmipSession.run | The main thread routine executed by invoking thread.start.
This method manages the new client connection, running a message
handling loop. Once this method completes, the thread is finished. | kmip/services/server/session.py | def run(self):
"""
The main thread routine executed by invoking thread.start.
This method manages the new client connection, running a message
handling loop. Once this method completes, the thread is finished.
"""
self._logger.info("Starting session: {0}".format(self.nam... | def run(self):
"""
The main thread routine executed by invoking thread.start.
This method manages the new client connection, running a message
handling loop. Once this method completes, the thread is finished.
"""
self._logger.info("Starting session: {0}".format(self.nam... | [
"The",
"main",
"thread",
"routine",
"executed",
"by",
"invoking",
"thread",
".",
"start",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/server/session.py#L91-L117 | [
"def",
"run",
"(",
"self",
")",
":",
"self",
".",
"_logger",
".",
"info",
"(",
"\"Starting session: {0}\"",
".",
"format",
"(",
"self",
".",
"name",
")",
")",
"try",
":",
"self",
".",
"_connection",
".",
"do_handshake",
"(",
")",
"except",
"Exception",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | RekeyRequestPayload.write | Write the data encoding the Rekey request payload to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
object.
kmip_version (KMIPVersion): An enumeration defining the... | kmip/core/messages/payloads/rekey.py | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Rekey request payload to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStrea... | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Rekey request payload to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStrea... | [
"Write",
"the",
"data",
"encoding",
"the",
"Rekey",
"request",
"payload",
"to",
"a",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/rekey.py#L161-L193 | [
"def",
"write",
"(",
"self",
",",
"output_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_stream",
"=",
"utils",
".",
"BytearrayStream",
"(",
")",
"if",
"self",
".",
"_unique_identifier",
"is",
"not",
"None",... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | RekeyResponsePayload.read | Read the data encoding the Rekey response payload and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read method; usually a BytearrayStream
object.
kmip_version (KMIPVe... | kmip/core/messages/payloads/rekey.py | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Rekey response payload and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read... | def read(self, input_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Read the data encoding the Rekey response payload and decode it into
its constituent parts.
Args:
input_stream (stream): A data stream containing encoded object
data, supporting a read... | [
"Read",
"the",
"data",
"encoding",
"the",
"Rekey",
"response",
"payload",
"and",
"decode",
"it",
"into",
"its",
"constituent",
"parts",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/rekey.py#L300-L344 | [
"def",
"read",
"(",
"self",
",",
"input_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"super",
"(",
"RekeyResponsePayload",
",",
"self",
")",
".",
"read",
"(",
"input_stream",
",",
"kmip_version",
"=",
"kmip_versi... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | RekeyResponsePayload.write | Write the data encoding the Rekey request payload to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStream
object.
kmip_version (KMIPVersion): An enumeration defining the... | kmip/core/messages/payloads/rekey.py | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Rekey request payload to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStrea... | def write(self, output_stream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the Rekey request payload to a stream.
Args:
output_stream (stream): A data stream in which to encode object
data, supporting a write method; usually a BytearrayStrea... | [
"Write",
"the",
"data",
"encoding",
"the",
"Rekey",
"request",
"payload",
"to",
"a",
"stream",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/rekey.py#L346-L383 | [
"def",
"write",
"(",
"self",
",",
"output_stream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"local_stream",
"=",
"utils",
".",
"BytearrayStream",
"(",
")",
"if",
"self",
".",
"_unique_identifier",
"is",
"not",
"None",... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | ActivateRequestPayload.write | Write the data encoding the ActivateRequestPayload object to a stream.
Args:
ostream (Stream): A data stream in which to encode object data,
supporting a write method; usually a BytearrayStream object.
kmip_version (KMIPVersion): An enumeration defining the KMIP
... | kmip/core/messages/payloads/activate.py | def write(self, ostream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the ActivateRequestPayload object to a stream.
Args:
ostream (Stream): A data stream in which to encode object data,
supporting a write method; usually a BytearrayStream obj... | def write(self, ostream, kmip_version=enums.KMIPVersion.KMIP_1_0):
"""
Write the data encoding the ActivateRequestPayload object to a stream.
Args:
ostream (Stream): A data stream in which to encode object data,
supporting a write method; usually a BytearrayStream obj... | [
"Write",
"the",
"data",
"encoding",
"the",
"ActivateRequestPayload",
"object",
"to",
"a",
"stream",
".",
"Args",
":",
"ostream",
"(",
"Stream",
")",
":",
"A",
"data",
"stream",
"in",
"which",
"to",
"encode",
"object",
"data",
"supporting",
"a",
"write",
"m... | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/activate.py#L71-L93 | [
"def",
"write",
"(",
"self",
",",
"ostream",
",",
"kmip_version",
"=",
"enums",
".",
"KMIPVersion",
".",
"KMIP_1_0",
")",
":",
"tstream",
"=",
"BytearrayStream",
"(",
")",
"# Write the contents of the request payload",
"if",
"self",
".",
"unique_identifier",
"is",... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | ActivateRequestPayload.validate | Error check the attributes of the ActivateRequestPayload object. | kmip/core/messages/payloads/activate.py | def validate(self):
"""
Error check the attributes of the ActivateRequestPayload object.
"""
if self.unique_identifier is not None:
if not isinstance(self.unique_identifier,
attributes.UniqueIdentifier):
msg = "invalid unique iden... | def validate(self):
"""
Error check the attributes of the ActivateRequestPayload object.
"""
if self.unique_identifier is not None:
if not isinstance(self.unique_identifier,
attributes.UniqueIdentifier):
msg = "invalid unique iden... | [
"Error",
"check",
"the",
"attributes",
"of",
"the",
"ActivateRequestPayload",
"object",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/core/messages/payloads/activate.py#L95-L103 | [
"def",
"validate",
"(",
"self",
")",
":",
"if",
"self",
".",
"unique_identifier",
"is",
"not",
"None",
":",
"if",
"not",
"isinstance",
"(",
"self",
".",
"unique_identifier",
",",
"attributes",
".",
"UniqueIdentifier",
")",
":",
"msg",
"=",
"\"invalid unique ... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | KMIPProxy.kmip_version | Set the KMIP version for the client.
Args:
value (KMIPVersion): A KMIPVersion enumeration
Return:
None
Raises:
ValueError: if value is not a KMIPVersion enumeration
Example:
>>> client.kmip_version = enums.KMIPVersion.KMIP_1_1
... | kmip/services/kmip_client.py | def kmip_version(self, value):
"""
Set the KMIP version for the client.
Args:
value (KMIPVersion): A KMIPVersion enumeration
Return:
None
Raises:
ValueError: if value is not a KMIPVersion enumeration
Example:
>>> client.... | def kmip_version(self, value):
"""
Set the KMIP version for the client.
Args:
value (KMIPVersion): A KMIPVersion enumeration
Return:
None
Raises:
ValueError: if value is not a KMIPVersion enumeration
Example:
>>> client.... | [
"Set",
"the",
"KMIP",
"version",
"for",
"the",
"client",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/kmip_client.py#L133-L153 | [
"def",
"kmip_version",
"(",
"self",
",",
"value",
")",
":",
"if",
"isinstance",
"(",
"value",
",",
"enums",
".",
"KMIPVersion",
")",
":",
"self",
".",
"_kmip_version",
"=",
"value",
"else",
":",
"raise",
"ValueError",
"(",
"\"KMIP version must be a KMIPVersion... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | KMIPProxy.is_profile_supported | Check if a profile is supported by the client.
Args:
conformance_clause (ConformanceClause):
authentication_suite (AuthenticationSuite):
Returns:
bool: True if the profile is supported, False otherwise.
Example:
>>> client.is_profile_supported(
... | kmip/services/kmip_client.py | def is_profile_supported(self, conformance_clause, authentication_suite):
"""
Check if a profile is supported by the client.
Args:
conformance_clause (ConformanceClause):
authentication_suite (AuthenticationSuite):
Returns:
bool: True if the profile ... | def is_profile_supported(self, conformance_clause, authentication_suite):
"""
Check if a profile is supported by the client.
Args:
conformance_clause (ConformanceClause):
authentication_suite (AuthenticationSuite):
Returns:
bool: True if the profile ... | [
"Check",
"if",
"a",
"profile",
"is",
"supported",
"by",
"the",
"client",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/kmip_client.py#L227-L245 | [
"def",
"is_profile_supported",
"(",
"self",
",",
"conformance_clause",
",",
"authentication_suite",
")",
":",
"return",
"(",
"self",
".",
"is_conformance_clause_supported",
"(",
"conformance_clause",
")",
"and",
"self",
".",
"is_authentication_suite_supported",
"(",
"au... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
test | KMIPProxy.rekey | Check object usage according to specific constraints.
Args:
uuid (string): The unique identifier of a managed cryptographic
object that should be checked. Optional, defaults to None.
offset (int): An integer specifying, in seconds, the difference
between ... | kmip/services/kmip_client.py | def rekey(self,
uuid=None,
offset=None,
template_attribute=None,
credential=None):
"""
Check object usage according to specific constraints.
Args:
uuid (string): The unique identifier of a managed cryptographic
... | def rekey(self,
uuid=None,
offset=None,
template_attribute=None,
credential=None):
"""
Check object usage according to specific constraints.
Args:
uuid (string): The unique identifier of a managed cryptographic
... | [
"Check",
"object",
"usage",
"according",
"to",
"specific",
"constraints",
"."
] | OpenKMIP/PyKMIP | python | https://github.com/OpenKMIP/PyKMIP/blob/b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e/kmip/services/kmip_client.py#L345-L421 | [
"def",
"rekey",
"(",
"self",
",",
"uuid",
"=",
"None",
",",
"offset",
"=",
"None",
",",
"template_attribute",
"=",
"None",
",",
"credential",
"=",
"None",
")",
":",
"operation",
"=",
"Operation",
"(",
"OperationEnum",
".",
"REKEY",
")",
"request_payload",
... | b51c5b044bd05f8c85a1d65d13a583a4d8fc1b0e |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.