Encryption and decryption using AWS KMS

Here’s a basic implementation of encryption and decryption using AWS KMS
and the AWS SDK for Java:

Further development is left as an exercise for the interested reader.