AWS KMS decryptRequest in Java
DecryptRequest decryptRequest = new DecryptRequest();
decryptRequest.setCiphertextBlob(encryptedKey);
// call AWS KMS to decrypt the key
DecryptResult decryptResult = kmsClient.decrypt(decryptRequest);
// parse out the decryption result
String strKeyId = decryptResult.getKeyId();
ByteBuffer plaintextKey = decryptResult.getPlaintext();