Class CertificateBaseProperties

java.lang.Object
com.azure.resourcemanager.batch.models.CertificateBaseProperties
Direct Known Subclasses:
CertificateCreateOrUpdateProperties, CertificateProperties

public class CertificateBaseProperties extends Object
Base certificate properties.
  • Constructor Details

    • CertificateBaseProperties

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

    • thumbprintAlgorithm

      public String thumbprintAlgorithm()
      Get the thumbprintAlgorithm property: The algorithm of the certificate thumbprint.

      This must match the first portion of the certificate name. Currently required to be 'SHA1'.

      Returns:
      the thumbprintAlgorithm value.
    • withThumbprintAlgorithm

      public CertificateBaseProperties withThumbprintAlgorithm(String thumbprintAlgorithm)
      Set the thumbprintAlgorithm property: The algorithm of the certificate thumbprint.

      This must match the first portion of the certificate name. Currently required to be 'SHA1'.

      Parameters:
      thumbprintAlgorithm - the thumbprintAlgorithm value to set.
      Returns:
      the CertificateBaseProperties object itself.
    • thumbprint

      public String thumbprint()
      Get the thumbprint property: The thumbprint of the certificate.

      This must match the thumbprint from the name.

      Returns:
      the thumbprint value.
    • withThumbprint

      public CertificateBaseProperties withThumbprint(String thumbprint)
      Set the thumbprint property: The thumbprint of the certificate.

      This must match the thumbprint from the name.

      Parameters:
      thumbprint - the thumbprint value to set.
      Returns:
      the CertificateBaseProperties object itself.
    • format

      public CertificateFormat format()
      Get the format property: The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx.
      Returns:
      the format value.
    • withFormat

      public CertificateBaseProperties withFormat(CertificateFormat format)
      Set the format property: The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx.
      Parameters:
      format - the format value to set.
      Returns:
      the CertificateBaseProperties object itself.
    • validate

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