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?

preguntada hace 9 meses241 visualizaciones
2 Respuestas
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
respondido hace 9 meses
profile pictureAWS
EXPERTO
revisado hace 9 meses
  • 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
respondido hace 9 meses
  • Thanks, but that only shows how to search for a key using key attributes. I need to get all the attributes of a key.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas