# Class X509Parameters (1.19.0)

1.19.0 (latest) 1.18.0 1.17.0 1.16.0 1.15.0 1.14.3 1.13.1 1.12.2 1.11.0 1.10.3 1.9.0 1.8.1 1.7.1 1.6.1 1.5.0 1.4.3 1.3.2 1.2.4 1.1.0 1.0.6 0.4.0 0.3.0 0.1.1

    X509Parameters(mapping=None, *, ignore_unknown_fields=False, **kwargs)

An
X509Parameters
is used to describe certain fields of an X.509 certificate, such as
the key usage fields, fields specific to CA certificates,
certificate policy extensions and custom extensions.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `key_usage` | `https://docs.cloud.google.com/python/docs/reference/privateca/latest/google.cloud.security.privateca_v1.types.KeyUsage` Optional. Indicates the intended use for keys that correspond to a certificate. |
| `ca_options` | `https://docs.cloud.google.com/python/docs/reference/privateca/latest/google.cloud.security.privateca_v1.types.X509Parameters.CaOptions` Optional. Describes options in this X509Parameters that are relevant in a CA certificate. If not specified, a default basic constraints extension with `is_ca=false` will be added for leaf certificates. |
| `policy_ids` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/privateca/latest/google.cloud.security.privateca_v1.types.ObjectId]` Optional. Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. |
| `aia_ocsp_servers` | `MutableSequence[str]` Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. |
| `name_constraints` | `https://docs.cloud.google.com/python/docs/reference/privateca/latest/google.cloud.security.privateca_v1.types.X509Parameters.NameConstraints` Optional. Describes the X.509 name constraints extension. |
| `additional_extensions` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/privateca/latest/google.cloud.security.privateca_v1.types.X509Extension]` Optional. Describes custom X.509 extensions. |

## Classes

### CaOptions

    CaOptions(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Describes the X.509 basic constraints extension, per `RFC 5280
section
4.2.1.9 <https://tools.ietf.org/html/rfc5280#section-4.2.1.9>`__

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### NameConstraints

    NameConstraints(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Describes the X.509 name constraints extension, per
<https://tools.ietf.org/html/rfc5280#section-4.2.1.10>