Skip to content

CiphertextType.deserialize should throw an error if it encounters an invalid type #118

Open
@mattsb42-aws

Description

@mattsb42-aws

Currently, if CiphertextType.deserialize is called with a byte containing anything other than a valid ciphertext type ID, it will return null. This seems like the wrong behavior to me.

https://github.com/aws/aws-encryption-sdk-java/blob/master/src/main/java/com/amazonaws/encryptionsdk/model/CiphertextType.java#L71-L75

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions