CertificateAuthorityIssuanceExpiryRule

class oci.certificates_management.models.CertificateAuthorityIssuanceExpiryRule(**kwargs)

Bases: oci.certificates_management.models.certificate_authority_rule.CertificateAuthorityRule

A rule that enforces how long certificates or certificate authorities (CAs) issued by this particular CA are valid. You must include either or both leafCertificateMaxValidityDuration and certificateAuthorityMaxValidityDuration.

Attributes

RULE_TYPE_CERTIFICATE_AUTHORITY_ISSUANCE_EXPIRY_RULE str(object=’’) -> str
certificate_authority_max_validity_duration Gets the certificate_authority_max_validity_duration of this CertificateAuthorityIssuanceExpiryRule.
leaf_certificate_max_validity_duration Gets the leaf_certificate_max_validity_duration of this CertificateAuthorityIssuanceExpiryRule.
rule_type [Required] Gets the rule_type of this CertificateAuthorityRule.

Methods

__init__(**kwargs) Initializes a new CertificateAuthorityIssuanceExpiryRule object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
RULE_TYPE_CERTIFICATE_AUTHORITY_ISSUANCE_EXPIRY_RULE = 'CERTIFICATE_AUTHORITY_ISSUANCE_EXPIRY_RULE'
__init__(**kwargs)

Initializes a new CertificateAuthorityIssuanceExpiryRule object with values from keyword arguments. The default value of the rule_type attribute of this class is CERTIFICATE_AUTHORITY_ISSUANCE_EXPIRY_RULE and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • rule_type (str) – The value to assign to the rule_type property of this CertificateAuthorityIssuanceExpiryRule. Allowed values for this property are: “CERTIFICATE_AUTHORITY_ISSUANCE_EXPIRY_RULE”
  • leaf_certificate_max_validity_duration (str) – The value to assign to the leaf_certificate_max_validity_duration property of this CertificateAuthorityIssuanceExpiryRule.
  • certificate_authority_max_validity_duration (str) – The value to assign to the certificate_authority_max_validity_duration property of this CertificateAuthorityIssuanceExpiryRule.
certificate_authority_max_validity_duration

Gets the certificate_authority_max_validity_duration of this CertificateAuthorityIssuanceExpiryRule. A property indicating the maximum validity duration, in days, of subordinate CA’s issued by this CA. Expressed in ISO 8601 format.

Returns:The certificate_authority_max_validity_duration of this CertificateAuthorityIssuanceExpiryRule.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

leaf_certificate_max_validity_duration

Gets the leaf_certificate_max_validity_duration of this CertificateAuthorityIssuanceExpiryRule. A property indicating the maximum validity duration, in days, of leaf certificates issued by this CA. Expressed in ISO 8601 format.

Returns:The leaf_certificate_max_validity_duration of this CertificateAuthorityIssuanceExpiryRule.
Return type:str
rule_type

[Required] Gets the rule_type of this CertificateAuthorityRule. The type of rule, whether a renewal rule regarding when to renew the CA or an issuance expiry rule that governs how long the certificates and CAs issued by the CA are valid. (For internal use only) An internal issuance rule defines the number and type of certificates that the CA can issue.

Allowed values for this property are: “CERTIFICATE_AUTHORITY_ISSUANCE_EXPIRY_RULE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The rule_type of this CertificateAuthorityRule.
Return type:str