Class PlatformManaged
java.lang.Object
com.azure.security.keyvault.certificates.models.PlatformManaged
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PlatformManaged>
public final class PlatformManaged
extends Object
implements com.azure.json.JsonSerializable<PlatformManaged>
Properties of the platform managed certificate.
Warning: this feature is currently intended for internal (first-party) Key Vault use only.
It is exposed in service version 2026-04-01, but the feature is not generally available.
Third-party calls that supply a CertificatePolicy configured via
CertificatePolicy.forPlatformManaged(PlatformManaged) will be rejected by the service. The shape
accepted under setMetadata(Map) and the values accepted for setCertificateUsage(String)
are owned by the Key Vault service and may change without notice. Do not use this type in production code.
-
Constructor Summary
ConstructorsConstructorDescriptionPlatformManaged(String certificateUsage) Creates an instance ofPlatformManaged. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlatformManagedfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PlatformManaged from the JsonReader.Get the certificate usage.Get the platform managed metadata.setCertificateUsage(String certificateUsage) Set the certificate usage.setMetadata(Map<String, Object> metadata) Set the platform managed metadata.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PlatformManaged
Creates an instance ofPlatformManaged.- Parameters:
certificateUsage- The intended usage of the certificate.
-
-
Method Details
-
getCertificateUsage
-
setCertificateUsage
Set the certificate usage.- Parameters:
certificateUsage- the certificate usage.- Returns:
- the updated PlatformManaged object itself.
-
getMetadata
-
setMetadata
Set the platform managed metadata.- Parameters:
metadata- the platform managed metadata.- Returns:
- the updated PlatformManaged object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<PlatformManaged>- Throws:
IOException
-
fromJson
Reads an instance of PlatformManaged from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PlatformManaged 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 PlatformManaged.IllegalStateException- If the requiredcertificateUsageproperty is missing.
-