Class KeyAttestation
java.lang.Object
com.azure.security.keyvault.keys.models.KeyAttestation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyAttestation>
public final class KeyAttestation
extends Object
implements com.azure.json.JsonSerializable<KeyAttestation>
The key attestation information.
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyAttestation
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of KeyAttestation from the JsonReader.byte[]
Get a base64url-encoded string containing certificates in PEM format, used for attestation validation.byte[]
Get the attestation blob bytes encoded as base64url string corresponding to a private key.byte[]
Get the attestation blob bytes encoded as base64url string corresponding to a public key in case of asymmetric key.Get the version of the attestation.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getCertificatePemFile
public byte[] getCertificatePemFile()Get a base64url-encoded string containing certificates in PEM format, used for attestation validation.- Returns:
- The certificate in PEM format.
-
getPrivateKeyAttestation
public byte[] getPrivateKeyAttestation()Get the attestation blob bytes encoded as base64url string corresponding to a private key.- Returns:
- The attestation blob bytes for the private portion of the key.
-
getPublicKeyAttestation
public byte[] getPublicKeyAttestation()Get the attestation blob bytes encoded as base64url string corresponding to a public key in case of asymmetric key.- Returns:
- The attestation blob bytes for the public portion of the key.
-
getVersion
Get the version of the attestation.- Returns:
- The version of the attestation.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<KeyAttestation>
- Throws:
IOException
-
fromJson
Reads an instance of KeyAttestation from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of KeyAttestation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the KeyAttestation.
-