Class CertificateBaseProperties
java.lang.Object
com.azure.resourcemanager.batch.models.CertificateBaseProperties
- Direct Known Subclasses:
CertificateCreateOrUpdateProperties
,CertificateProperties
Base certificate properties.
-
Constructor Summary
ConstructorDescriptionCreates an instance of CertificateBaseProperties class. -
Method Summary
Modifier and TypeMethodDescriptionformat()
Get the format property: The format of the certificate - either Pfx or Cer.Get the thumbprint property: The thumbprint of the certificate.Get the thumbprintAlgorithm property: The algorithm of the certificate thumbprint.void
validate()
Validates the instance.withFormat
(CertificateFormat format) Set the format property: The format of the certificate - either Pfx or Cer.withThumbprint
(String thumbprint) Set the thumbprint property: The thumbprint of the certificate.withThumbprintAlgorithm
(String thumbprintAlgorithm) Set the thumbprintAlgorithm property: The algorithm of the certificate thumbprint.
-
Constructor Details
-
CertificateBaseProperties
public CertificateBaseProperties()Creates an instance of CertificateBaseProperties class.
-
-
Method Details
-
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
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
Get the thumbprint property: The thumbprint of the certificate.This must match the thumbprint from the name.
- Returns:
- the thumbprint value.
-
withThumbprint
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
Get the format property: The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx.- Returns:
- the format value.
-
withFormat
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.
-