CertificateConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.apimanagement.models.CertificateConfiguration

public final class CertificateConfiguration

Certificate configuration which consist of non-trusted intermediates and root certificates.

Constructor Summary

Constructor Description
CertificateConfiguration()

Creates an instance of CertificateConfiguration class.

Method Summary

Modifier and Type Method and 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.

Methods inherited from java.lang.Object

Constructor Details

CertificateConfiguration

public CertificateConfiguration()

Creates an instance of CertificateConfiguration class.

Method Details

certificate

public CertificateInformation certificate()

Get the certificate property: Certificate information.

Returns:

the certificate value.

certificatePassword

public String certificatePassword()

Get the certificatePassword property: Certificate Password.

Returns:

the certificatePassword value.

encodedCertificate

public String encodedCertificate()

Get the encodedCertificate property: Base64 Encoded certificate.

Returns:

the encodedCertificate value.

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.

validate

public void validate()

Validates the instance.

withCertificate

public CertificateConfiguration withCertificate(CertificateInformation certificate)

Set the certificate property: Certificate information.

Parameters:

certificate - the certificate value to set.

Returns:

the CertificateConfiguration object itself.

withCertificatePassword

public CertificateConfiguration withCertificatePassword(String certificatePassword)

Set the certificatePassword property: Certificate Password.

Parameters:

certificatePassword - the certificatePassword value to set.

Returns:

the CertificateConfiguration object itself.

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.

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.

Applies to