I created a key in AWS KMS key vault programmatically using Java SDK.
I want to fetch the key details using the below code.
DescribeKeyResult result = awsClient.describeKey(describeKeyRequest);
The result does not seem to contain the key size in it.
It has metadata properties like deletionDate , creationDate , isEnabled etc. But not the size.
For Asymmetric key , I can get the public key and calculate the key size using below function
GetPublicKeyResult getPublicKey(GetPublicKeyRequest getPublicKeyRequest)
How do I get the key Size for Symmetric key.