Class CertificateConfiguration
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.CertificateConfiguration
-
public final class CertificateConfiguration extends Object
Certificate configuration which consist of non-trusted intermediates and root certificates.
-
-
Constructor Summary
Constructors Constructor Description CertificateConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CertificateInformation
certificate()
Get the certificate property: Certificate information.String
certificatePassword()
Get the certificatePassword property: Certificate Password.String
encodedCertificate()
Get the encodedCertificate property: Base64 Encoded certificate.CertificateConfigurationStoreName
storeName()
Get the storeName property: The System.Security.Cryptography.x509certificates.StoreName certificate store location.void
validate()
Validates the instance.CertificateConfiguration
withCertificate(CertificateInformation certificate)
Set the certificate property: Certificate information.CertificateConfiguration
withCertificatePassword(String certificatePassword)
Set the certificatePassword property: Certificate Password.CertificateConfiguration
withEncodedCertificate(String encodedCertificate)
Set the encodedCertificate property: Base64 Encoded certificate.CertificateConfiguration
withStoreName(CertificateConfigurationStoreName storeName)
Set the storeName property: The System.Security.Cryptography.x509certificates.StoreName certificate store location.
-
-
-
Method Detail
-
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
public CertificateConfigurationStoreName 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
public CertificateConfiguration withStoreName(CertificateConfigurationStoreName storeName)
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.
-
-