Is getting key attributes in Java supported in SDK 5?

0

The Java SDK allows key attributes to be set during creation using the attributes map. Is it possible to read the attributes back from an existing key?

asked 10 months ago251 views
2 Answers
0

Hello, In this context, please note that the getPrivate() method is supported to "Get the value of a key attribute for an existing key”.

This is set using the Java class KeyPairAttributesMap to handle key attributes for a key pair. KeyPairAttributesMap encapsulates two KeyAttributesMap objects; one for a public key and one for a private key.

For more Information regarding the same, please refer the below mentioned document-

[x] https://docs.aws.amazon.com/cloudhsm/latest/userguide/java-lib-attributes_5.html#java-setting-attributes_5

That being said, if you would like resource based Information/troubleshooting, please raise a support case with AWS for further information. If a support case has already been created please be assured that we will get back to you and assist you in the best way possible.

AWS
Simmi_K
answered 9 months ago
profile pictureAWS
EXPERT
reviewed 9 months ago
  • Thanks, but that will only get me the private key attributes from an existing map when creating a key. I need to get the attributes of an existing key. I will raise a support issue.

0

Please check this is code sample which may help with what you are looking for.

AWS
Shankar
answered 9 months ago
  • Thanks, but that only shows how to search for a key using key attributes. I need to get all the attributes of a key.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions