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 Details

    • PlatformManaged

      public PlatformManaged(String certificateUsage)
      Creates an instance of PlatformManaged.
      Parameters:
      certificateUsage - The intended usage of the certificate.
  • Method Details

    • getCertificateUsage

      public String getCertificateUsage()
      Get the certificate usage.
      Returns:
      the certificate usage.
    • setCertificateUsage

      public PlatformManaged setCertificateUsage(String certificateUsage)
      Set the certificate usage.
      Parameters:
      certificateUsage - the certificate usage.
      Returns:
      the updated PlatformManaged object itself.
    • getMetadata

      public Map<String,Object> getMetadata()
      Get the platform managed metadata.
      Returns:
      the platform managed metadata.
    • setMetadata

      public PlatformManaged setMetadata(Map<String,Object> metadata)
      Set the platform managed metadata.
      Parameters:
      metadata - the platform managed metadata.
      Returns:
      the updated PlatformManaged object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<PlatformManaged>
      Throws:
      IOException
    • fromJson

      public static PlatformManaged fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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 required certificateUsage property is missing.