Class CertificateConfiguration

java.lang.Object
com.azure.resourcemanager.apimanagement.models.CertificateConfiguration
All Implemented Interfaces:
com.azure.json.JsonSerializable<CertificateConfiguration>

public final class CertificateConfiguration extends Object implements com.azure.json.JsonSerializable<CertificateConfiguration>
Certificate configuration which consist of non-trusted intermediates and root certificates.
  • Constructor Details

    • CertificateConfiguration

      public CertificateConfiguration()
      Creates an instance of CertificateConfiguration class.
  • Method Details

    • encodedCertificate

      public String encodedCertificate()
      Get the encodedCertificate property: Base64 Encoded certificate.
      Returns:
      the encodedCertificate value.
    • withEncodedCertificate

      public CertificateConfiguration withEncodedCertificate(String encodedCertificate)
      Set the encodedCertificate property: Base64 Encoded certificate.
      Parameters:
      encodedCertificate - the encodedCertificate value to set.
      Returns:
      the CertificateConfiguration object itself.
    • certificatePassword

      public String certificatePassword()
      Get the certificatePassword property: Certificate Password.
      Returns:
      the certificatePassword value.
    • withCertificatePassword

      public CertificateConfiguration withCertificatePassword(String certificatePassword)
      Set the certificatePassword property: Certificate Password.
      Parameters:
      certificatePassword - the certificatePassword value to set.
      Returns:
      the CertificateConfiguration object itself.
    • storeName

      Get the storeName property: The System.Security.Cryptography.x509certificates.StoreName certificate store location. Only Root and CertificateAuthority are valid locations.
      Returns:
      the storeName value.
    • withStoreName

      Set the storeName property: The System.Security.Cryptography.x509certificates.StoreName certificate store location. Only Root and CertificateAuthority are valid locations.
      Parameters:
      storeName - the storeName value to set.
      Returns:
      the CertificateConfiguration object itself.
    • certificate

      public CertificateInformation certificate()
      Get the certificate property: Certificate information.
      Returns:
      the certificate value.
    • withCertificate

      public CertificateConfiguration withCertificate(CertificateInformation certificate)
      Set the certificate property: Certificate information.
      Parameters:
      certificate - the certificate value to set.
      Returns:
      the CertificateConfiguration object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

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

      public static CertificateConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CertificateConfiguration from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CertificateConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the CertificateConfiguration.