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 Summary
ConstructorsConstructorDescriptionCreates an instance of CertificateConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the certificate property: Certificate information.Get the certificatePassword property: Certificate Password.Get the encodedCertificate property: Base64 Encoded certificate.static CertificateConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CertificateConfiguration from the JsonReader.Get the storeName property: The System.Security.Cryptography.x509certificates.StoreName certificate store location.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCertificate(CertificateInformation certificate) Set the certificate property: Certificate information.withCertificatePassword(String certificatePassword) Set the certificatePassword property: Certificate Password.withEncodedCertificate(String encodedCertificate) Set the encodedCertificate property: Base64 Encoded certificate.withStoreName(CertificateConfigurationStoreName storeName) Set the storeName property: The System.Security.Cryptography.x509certificates.StoreName certificate store location.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CertificateConfiguration
public CertificateConfiguration()Creates an instance of CertificateConfiguration class.
-
-
Method Details
-
encodedCertificate
Get the encodedCertificate property: Base64 Encoded certificate.- Returns:
- the encodedCertificate value.
-
withEncodedCertificate
Set the encodedCertificate property: Base64 Encoded certificate.- Parameters:
encodedCertificate- the encodedCertificate value to set.- Returns:
- the CertificateConfiguration object itself.
-
certificatePassword
Get the certificatePassword property: Certificate Password.- Returns:
- the certificatePassword value.
-
withCertificatePassword
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
Get the certificate property: Certificate information.- Returns:
- the certificate value.
-
withCertificate
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
- Specified by:
toJsonin interfacecom.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.
-