Class OwnCertificate

java.lang.Object
com.azure.resourcemanager.deviceregistry.models.OwnCertificate

public final class OwnCertificate extends Object
Certificate or private key that can be used by the southbound connector connecting to the shop floor/OT device. The accepted extensions are .der for certificates and .pfx/.pem for private keys.
  • Constructor Details

    • OwnCertificate

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

    • certThumbprint

      public String certThumbprint()
      Get the certThumbprint property: Certificate thumbprint.
      Returns:
      the certThumbprint value.
    • withCertThumbprint

      public OwnCertificate withCertThumbprint(String certThumbprint)
      Set the certThumbprint property: Certificate thumbprint.
      Parameters:
      certThumbprint - the certThumbprint value to set.
      Returns:
      the OwnCertificate object itself.
    • certSecretReference

      public String certSecretReference()
      Get the certSecretReference property: Secret Reference name (cert and private key).
      Returns:
      the certSecretReference value.
    • withCertSecretReference

      public OwnCertificate withCertSecretReference(String certSecretReference)
      Set the certSecretReference property: Secret Reference name (cert and private key).
      Parameters:
      certSecretReference - the certSecretReference value to set.
      Returns:
      the OwnCertificate object itself.
    • certPasswordReference

      public String certPasswordReference()
      Get the certPasswordReference property: Secret Reference Name (Pfx or Pem password).
      Returns:
      the certPasswordReference value.
    • withCertPasswordReference

      public OwnCertificate withCertPasswordReference(String certPasswordReference)
      Set the certPasswordReference property: Secret Reference Name (Pfx or Pem password).
      Parameters:
      certPasswordReference - the certPasswordReference value to set.
      Returns:
      the OwnCertificate object itself.
    • validate

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