def read(self, input_buffer, kmip_version=enums.KMIPVersion.KMIP_1_0):
super(CreateKeyPairRequestPayload, self).read(<EOL>input_buffer,<EOL>kmip_version=kmip_version<EOL>)<EOL>local_buffer = utils.BytearrayStream(input_buffer.read(self.length))<EOL>if kmip_version < enums.KMIPVersion.KMIP_2_0:<EOL><INDENT>if self.is_tag_next(<EOL>enums.Tags.COMMON_TEMPLATE_ATTRIBUTE,<EOL>local_buffer<EOL>):<EOL><INDENT>self._common_template_attribute = objects.TemplateAttribute(<EOL>tag=enums.Tags.COMMON_TEMPLATE_ATTRIBUTE<EOL>)<EOL>self._common_template_attribute.read(<EOL>local_buffer,<EOL>kmip_version=kmip_version<EOL>)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if self.is_tag_next(enums.Tags.COMMON_ATTRIBUTES, local_buffer):<EOL><INDENT>attributes = objects.Attributes(<EOL>tag=enums.Tags.COMMON_ATTRIBUTES<EOL>)<EOL>attributes.read(local_buffer, kmip_version=kmip_version)<EOL>self._common_template_attribute =objects.convert_attributes_to_template_attribute(<EOL>attributes<EOL>)<EOL><DEDENT><DEDENT>if kmip_version < enums.KMIPVersion.KMIP_2_0:<EOL><INDENT>if self.is_tag_next(<EOL>enums.Tags.PRIVATE_KEY_TEMPLATE_ATTRIBUTE,<EOL>local_buffer<EOL>):<EOL><INDENT>self._private_key_template_attribute =objects.TemplateAttribute(<EOL>tag=enums.Tags.PRIVATE_KEY_TEMPLATE_ATTRIBUTE<EOL>)<EOL>self._private_key_template_attribute.read(<EOL>local_buffer,<EOL>kmip_version=kmip_version<EOL>)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if self.is_tag_next(<EOL>enums.Tags.PRIVATE_KEY_ATTRIBUTES,<EOL>local_buffer<EOL>):<EOL><INDENT>attributes = objects.Attributes(<EOL>tag=enums.Tags.PRIVATE_KEY_ATTRIBUTES<EOL>)<EOL>attributes.read(local_buffer, kmip_version=kmip_version)<EOL>self._private_key_template_attribute =objects.convert_attributes_to_template_attribute(<EOL>attributes<EOL>)<EOL><DEDENT><DEDENT>if kmip_version < enums.KMIPVersion.KMIP_2_0:<EOL><INDENT>if self.is_tag_next(<EOL>enums.Tags.PUBLIC_KEY_TEMPLATE_ATTRIBUTE,<EOL>local_buffer<EOL>):<EOL><INDENT>self._public_key_template_attribute =objects.TemplateAttribute(<EOL>tag=enums.Tags.PUBLIC_KEY_TEMPLATE_ATTRIBUTE<EOL>)<EOL>self._public_key_template_attribute.read(<EOL>local_buffer,<EOL>kmip_version=kmip_version<EOL>)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if self.is_tag_next(<EOL>enums.Tags.PUBLIC_KEY_ATTRIBUTES,<EOL>local_buffer<EOL>):<EOL><INDENT>attributes = objects.Attributes(<EOL>tag=enums.Tags.PUBLIC_KEY_ATTRIBUTES<EOL>)<EOL>attributes.read(local_buffer, kmip_version=kmip_version)<EOL>self._public_key_template_attribute =objects.convert_attributes_to_template_attribute(<EOL>attributes<EOL>)<EOL><DEDENT><DEDENT>self.is_oversized(local_buffer)<EOL>
Read the data encoding the CreateKeyPair 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
        version with which the object will be decoded. Optional,
        defaults to KMIP 1.0.