Share via


CertificateProfileProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.trustedsigning.models.CertificateProfileProperties

Implements

public final class CertificateProfileProperties
implements JsonSerializable<CertificateProfileProperties>

Properties of the certificate profile.

Constructor Summary

Constructor Description
CertificateProfileProperties()

Creates an instance of CertificateProfileProperties class.

Method Summary

Modifier and Type Method and Description
List<Certificate> certificates()

Get the certificates property: List of renewed certificates.

String city()

Get the city property: Used as L in the certificate subject name.

String commonName()

Get the commonName property: Used as CN in the certificate subject name.

String country()

Get the country property: Used as C in the certificate subject name.

String enhancedKeyUsage()

Get the enhancedKeyUsage property: Enhanced key usage of the certificate.

static CertificateProfileProperties fromJson(JsonReader jsonReader)

Reads an instance of CertificateProfileProperties from the JsonReader.

String identityValidationId()

Get the identityValidationId property: Identity validation id used for the certificate subject name.

Boolean includeCity()

Get the includeCity property: Whether to include L in the certificate subject name.

Boolean includeCountry()

Get the includeCountry property: Whether to include C in the certificate subject name.

Boolean includePostalCode()

Get the includePostalCode property: Whether to include PC in the certificate subject name.

Boolean includeState()

Get the includeState property: Whether to include S in the certificate subject name.

Boolean includeStreetAddress()

Get the includeStreetAddress property: Whether to include STREET in the certificate subject name.

String organization()

Get the organization property: Used as O in the certificate subject name.

String organizationUnit()

Get the organizationUnit property: Used as OU in the private trust certificate subject name.

String postalCode()

Get the postalCode property: Used as PC in the certificate subject name.

ProfileType profileType()

Get the profileType property: Profile type of the certificate.

ProvisioningState provisioningState()

Get the provisioningState property: Status of the current operation on certificate profile.

String state()

Get the state property: Used as S in the certificate subject name.

CertificateProfileStatus status()

Get the status property: Status of the certificate profile.

String streetAddress()

Get the streetAddress property: Used as STREET in the certificate subject name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CertificateProfileProperties withIdentityValidationId(String identityValidationId)

Set the identityValidationId property: Identity validation id used for the certificate subject name.

CertificateProfileProperties withIncludeCity(Boolean includeCity)

Set the includeCity property: Whether to include L in the certificate subject name.

CertificateProfileProperties withIncludeCountry(Boolean includeCountry)

Set the includeCountry property: Whether to include C in the certificate subject name.

CertificateProfileProperties withIncludePostalCode(Boolean includePostalCode)

Set the includePostalCode property: Whether to include PC in the certificate subject name.

CertificateProfileProperties withIncludeState(Boolean includeState)

Set the includeState property: Whether to include S in the certificate subject name.

CertificateProfileProperties withIncludeStreetAddress(Boolean includeStreetAddress)

Set the includeStreetAddress property: Whether to include STREET in the certificate subject name.

CertificateProfileProperties withProfileType(ProfileType profileType)

Set the profileType property: Profile type of the certificate.

Methods inherited from java.lang.Object

Constructor Details

CertificateProfileProperties

public CertificateProfileProperties()

Creates an instance of CertificateProfileProperties class.

Method Details

certificates

public List<Certificate> certificates()

Get the certificates property: List of renewed certificates.

Returns:

the certificates value.

city

public String city()

Get the city property: Used as L in the certificate subject name.

Returns:

the city value.

commonName

public String commonName()

Get the commonName property: Used as CN in the certificate subject name.

Returns:

the commonName value.

country

public String country()

Get the country property: Used as C in the certificate subject name.

Returns:

the country value.

enhancedKeyUsage

public String enhancedKeyUsage()

Get the enhancedKeyUsage property: Enhanced key usage of the certificate.

Returns:

the enhancedKeyUsage value.

fromJson

public static CertificateProfileProperties fromJson(JsonReader jsonReader)

Reads an instance of CertificateProfileProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CertificateProfileProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

identityValidationId

public String identityValidationId()

Get the identityValidationId property: Identity validation id used for the certificate subject name.

Returns:

the identityValidationId value.

includeCity

public Boolean includeCity()

Get the includeCity property: Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types.

Returns:

the includeCity value.

includeCountry

public Boolean includeCountry()

Get the includeCountry property: Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types.

Returns:

the includeCountry value.

includePostalCode

public Boolean includePostalCode()

Get the includePostalCode property: Whether to include PC in the certificate subject name.

Returns:

the includePostalCode value.

includeState

public Boolean includeState()

Get the includeState property: Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types.

Returns:

the includeState value.

includeStreetAddress

public Boolean includeStreetAddress()

Get the includeStreetAddress property: Whether to include STREET in the certificate subject name.

Returns:

the includeStreetAddress value.

organization

public String organization()

Get the organization property: Used as O in the certificate subject name.

Returns:

the organization value.

organizationUnit

public String organizationUnit()

Get the organizationUnit property: Used as OU in the private trust certificate subject name.

Returns:

the organizationUnit value.

postalCode

public String postalCode()

Get the postalCode property: Used as PC in the certificate subject name.

Returns:

the postalCode value.

profileType

public ProfileType profileType()

Get the profileType property: Profile type of the certificate.

Returns:

the profileType value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Status of the current operation on certificate profile.

Returns:

the provisioningState value.

state

public String state()

Get the state property: Used as S in the certificate subject name.

Returns:

the state value.

status

public CertificateProfileStatus status()

Get the status property: Status of the certificate profile.

Returns:

the status value.

streetAddress

public String streetAddress()

Get the streetAddress property: Used as STREET in the certificate subject name.

Returns:

the streetAddress value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIdentityValidationId

public CertificateProfileProperties withIdentityValidationId(String identityValidationId)

Set the identityValidationId property: Identity validation id used for the certificate subject name.

Parameters:

identityValidationId - the identityValidationId value to set.

Returns:

the CertificateProfileProperties object itself.

withIncludeCity

public CertificateProfileProperties withIncludeCity(Boolean includeCity)

Set the includeCity property: Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types.

Parameters:

includeCity - the includeCity value to set.

Returns:

the CertificateProfileProperties object itself.

withIncludeCountry

public CertificateProfileProperties withIncludeCountry(Boolean includeCountry)

Set the includeCountry property: Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types.

Parameters:

includeCountry - the includeCountry value to set.

Returns:

the CertificateProfileProperties object itself.

withIncludePostalCode

public CertificateProfileProperties withIncludePostalCode(Boolean includePostalCode)

Set the includePostalCode property: Whether to include PC in the certificate subject name.

Parameters:

includePostalCode - the includePostalCode value to set.

Returns:

the CertificateProfileProperties object itself.

withIncludeState

public CertificateProfileProperties withIncludeState(Boolean includeState)

Set the includeState property: Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types.

Parameters:

includeState - the includeState value to set.

Returns:

the CertificateProfileProperties object itself.

withIncludeStreetAddress

public CertificateProfileProperties withIncludeStreetAddress(Boolean includeStreetAddress)

Set the includeStreetAddress property: Whether to include STREET in the certificate subject name.

Parameters:

includeStreetAddress - the includeStreetAddress value to set.

Returns:

the CertificateProfileProperties object itself.

withProfileType

public CertificateProfileProperties withProfileType(ProfileType profileType)

Set the profileType property: Profile type of the certificate.

Parameters:

profileType - the profileType value to set.

Returns:

the CertificateProfileProperties object itself.

Applies to